Question :
Good afternoon,
I made the global installation of the vue-cli
npm install -g vue-cli
When you try to start a project with the vue init webpack my-project
the following error is displayed
vue-cli · tunneling socket could not be established, cause = connect EINVAL 0.0.12.56:80 – Local (0.0.0.0:0)
When you try to run the npm run vue – list command, the error is displayed:
crud_vue@1.0.0 vue
/home/luan.freitas/Documentos/APIRest/vuejs_testes/crud_vue
vue “list”
vue-cli · tunneling socket could not be established, cause = connect EINVAL 0.0.12.56:80 – Local (0.0.0.0:0)
npm ERR! Linux 4.6.7-300.fc24.x86_64
npm ERR! argv “/ usr / bin / node” “/ usr / bin / npm” “run” “vue” “-” “list”
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! crud_vue@1.0.0 vue:vue "list"
npm ERR! Exit status 1
npm ERR! Home
npm ERR! Failed at the crud_vue@1.0.0 vue script ‘vue’ list “‘.
npm ERR! This is most likely a problem with the crud_vue package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! vue “list”
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs crud_vue
npm ERR! Or if that is not available, you can get their info via:
npm ERR! Home
npm ERR! npm owner ls crud_vue
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
I’m using fedora 24, node 4.5.0 and npm 2.15.9.
Running the command with sudo
was slower, and the output was as follows.
vue-cli · connect ETIMEDOUT 192.30.253.116:443
npm ERR! Linux 4.6.7-300.fc24.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "run" "vue" "--" "list"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! crud_vue@1.0.0 vue: 'vue "list"'
npm ERR! Exit status 1
Any help is already welcome, kkkkk
Answer :
As you have installed it in a global way, you do not use NPM to run, to see the list of templates, just run the command: vue list
(obs, without --
, because it is a command , not option).
And to execute the project you should use the command: npm run dev
(for Webpack)
(character, now that I have seen the question is 8/2016 o.O)