Skip to content
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

vue init doesn't work #552

Closed
rashuo opened this issue Aug 8, 2017 · 7 comments
Closed

vue init doesn't work #552

rashuo opened this issue Aug 8, 2017 · 7 comments

Comments

@rashuo
Copy link

rashuo commented Aug 8, 2017

system: MAC OS
Node.js: v8.1.2
npm: v5.3.0
my command: vue init webpack vpro
error info: Error: Cannot find module 'ini' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object.<anonymous> (/usr/local/lib/node_modules/vue-cli/node_modules/rc/lib/utils.js:3:12) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3)

@jaytanweb
Copy link

pls try 'vue init webpack vpro' again.
"Error: Cannot find module 'ini' "shows that you probably typed 'vue ini ' instead of 'vue init'.

@rashuo
Copy link
Author

rashuo commented Aug 8, 2017

I've tried lots of times, I'm pretty sure that I did typed vue init webpack vpro

@rashuo
Copy link
Author

rashuo commented Aug 8, 2017

In the 'error info', we can see that the error was not caused by 'input params'

@jaytanweb
Copy link

Node.js: v8.1.2
npm: v5.3.0
vue init webpack vpro worked good in my MAC, you may need to reinstall the vue-cli or even the node.

@rashuo
Copy link
Author

rashuo commented Aug 8, 2017

I've tried run npm i -g ini,
and then I run npm init webpack vpro again,
the error info was updated to: Error: Cannot find module 'core-util-is' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object.<anonymous> (/usr/local/lib/node_modules/vue-cli/node_modules/readable-stream/lib/_stream_readable.js:67:12) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3)

@rashuo
Copy link
Author

rashuo commented Aug 8, 2017

I've already reinstall vue-cli three times, and I just updated my node to 'v8.2.1' through n module, it reports the same error

@rashuo
Copy link
Author

rashuo commented Aug 8, 2017

It's work! may be it's caused by my network, I reinstall vue-cli again, then all trouble were gone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants