Description
The problem:
For the original bug report, see vuejs/vue-cli#681
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 npm install
themselves. So I will add a nice error message explaining that to users.
so what's the Problem, really?
As to the original source of the problem, I'm a bit dumbfounded for the moment.
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
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