Problem with Vue-cli

Asked

Viewed 1,553 times

4

Good afternoon, I did the global Vue-cli installation npm install -g Vue-cli When trying to start a project with the command Vue init webpack my-project the following error is shown

Vue-cli tunneling socket could not be established, cause=connect EINVAL 0.0.12.56:80 - Local (0.0.0.0:0)

When trying to turn the command npm run Vue -- list the error is presented:

[email protected] Vue
/home/Uan.Correct/Documents/Apirest/vuejs_tests/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! [email protected] Vue: vue "list"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! see "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 isn’t available, you can get their info via:
npm ERR!
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! /home/Luan.Reitas/Documentos/Apirest/vuejs_testes/crud_vue/npm-debug.log

I am using Fedora 24, Node 4.5.0 and npm 2.15.9.

Running the command with sudo the execution took longer, and the exit 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! [email protected] vue: `vue "list"`
npm ERR! Exit status 1

Any help is welcome, kkkkk

1 answer

4

Since you installed it globally, you do not use NPM to run, to see the list of templates just run the command:
vue list (Obs, without the --, because it is a command, not an option).

And to run the project you must use the command:
npm run dev (for Webpack)

(Now that I have seen that the question is of 8/2016 the.O)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.