-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run 'vue init webpack' fail in windows10 #681
Comments
Same, failing on OSX 10.11.6. Seemed to just fail on npm install. After doing a manual npm install and checking it out things seem to be working. |
It work fine on OSX 10.12.6 |
the same error, node version 7.5.0, newest vue-cli version, |
you can choose 'NO, I will handle that myself' as a workaround |
the same error, node version 7.9.0, newest vue-cli version |
|
on this step choose :
after the project has been created, run
as administrator to install dependencies.
is work fine |
the same error,but it can work after run |
There is also an issue in the npm repo npm/npm#19374 about the same thing. The issue is that when you provide a name to create a directory, like so
Instead of using the current directory, like so
When you then elect to have scaffolding restore your packages (whether through npm or yarn), you are not in the project directory, but above it, so the package install/restore command fails. The workaround works because it skips the package install/restore command. The fix (if you like) would be for vue-cli to change into the directory that it created (when a name is provided) before running the package install/restore command. |
Hi guys, I'm the one responsible for that new feature of the template (see: vuejs-templates/webpack#1133). I tested in throughly on OS X, and @sudo-suhas did on windows. However, since we can't test all version combinations of OS's and node/npm, errors can happen, so sorry about that and thanks for your patience. Immediate solutions/workarounds.One thing we can immediately improve is the error handling. This error is not "fatal" - all people have to do is run so what's the Problem, really?As to the original source of the problem, I'm a bit dumbfounded for the moment.
That would be weird - being in the wrong directory should lead to an error on OSX as well, but doesn't (for me). I also think I set the cwd for the npm call to the right directory here: https://github.com/vuejs-templates/webpack/blob/develop/meta.js#L155-L158 Continuing in the right repositorySince this issue is caused by code in the webpack template, not the CLI, have opened an issue there (see: vuejs-templates/webpack#1168) - further discussion should be taking pace there as well. Therefore I will lock this issue, but keep it open for others with the same problem until it's fixed. It will be closed when the problem is solved in the template repo.
The problem we are seeing here is very likely our fault, not npm's. That ticket should be closed. |
This should be fixed now with vuejs-templates/webpack#1170 |
node version is v8.9.1
npm version is 5.5.1
vue-cli version is 2.9.2
if i initialize a vue project like:
vue init webpack testproject
and follow the prompts to configure, then it show err:
The text was updated successfully, but these errors were encountered: