简体   繁体   中英

Vue-cli generating project stopped

when I try to generate a project with vue-cli, its stopped, that is what i get

>> vue init webpack test 
? Project name test
? Project description (A Vue.js project) 

Then I cant cancel with ctl + c or something, I hit enter and nothing, im use node v8 and npm v5

I fixed this by first uninstalling the vue-cli by running npm uninstall vue-cli -g then uninstalling my Node.js from the control panel: 在此处输入图片说明 Then installing the latest current version(not the LTS version) of Node.js then running npm install -g npm then install the vue-cli again using npm install -g vue-cli


In a nutshell update Node.js and npm to the latest versions then install the vue-cli.


Update: In case you use Ubuntu or any Ubuntu base OS: First, uninstalling the vue-cli by running sudo npm uninstall vue-cli -g then uninstall your current version of Node and install the latest version from here (install the build tools as well) then run sudo npm install -g npm then install the vue-cli again using sudo npm install -g vue-cli

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM