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-cli · Failed to download repo vuejs-templates/webpack: read ECONNRESET #757

Closed
mayefeng opened this issue Feb 1, 2018 · 46 comments
Closed

Comments

@mayefeng
Copy link

mayefeng commented Feb 1, 2018

Version

Reproduction link

https://jsfiddle.net/b5u87965/

Steps to reproduce

when create a new vue project:

vue init webpack my-project

vue-cli · Failed to download repo vuejs-templates/webpack: read ECONNRESET

What is expected?

init a new vue project

What is actually happening?

vue-cli · Failed to download repo vuejs-templates/webpack: read ECONNRESET

@mayefeng
Copy link
Author

mayefeng commented Feb 1, 2018

@yyx990803 @Jinjiang please help me for this issue,thanks

@jslaplante
Copy link

same here. :/

@yyx990803
Copy link
Member

Does this happen with old version of vue-cli 2.9.2? If that happens, it's likely a network problem.

@yyx990803
Copy link
Member

Fixed via 6ce8565

@mayefeng
Copy link
Author

mayefeng commented Feb 3, 2018

@yyx990803 it still doesn't work

@auzystephens
Copy link

@mayefeng I was having the same issue but I updated my global NPM module;

sudo npm update -g @vue

and installed the global addon,

sudo npm i -g @vue/cli-init

and all is working now.

@mayefeng
Copy link
Author

mayefeng commented Feb 6, 2018

@auzystephens thanks for your help,but it still can not work.

@Kolymb-Kapustin
Copy link

I have almost the same problem. @vue/[email protected]
vue-cli · Failed to download repo vuejs-templates/clie: Response code 404 (Not Found)

@evinkuraga
Copy link

Same problem

`$ vue init webpack-simple testwp

vue-cli · Failed to download repo vuejs-templates/webpack-simple: self signed certificate in certificate chain
`

Vue cli version: 3.0.0-beta.1
Npm: 6.1.0
Node: 8.11.2
Env: Win10

@bobpappas
Copy link

doesn't work for me

bpappas-281:Code bpappas$ vue init webpack fire-app

Unknown command init.

vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

@tollogaran
Copy link

tollogaran commented May 30, 2018

i updated npm, and still the same prob:

$ vue init webpack-simple projsimple
Unknown command init.
vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

Work form me:
vue-init webpack my-project
and
vue-init webpack-simple my-project

@georgelilis
Copy link

georgelilis commented May 30, 2018

Under Windows 10 and looking at ~\AppData\Roaming\npm folder there is a vue-cli.bat

I executed "vue-cli init webpack my-project" and it worked.

Notice the '-'

for some reason official way "vue init webpack my-project" not working anymore although removed and install vue-cli again

@celorodovalho
Copy link

$ vue init webpack my-project

Unknown command init.

vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

@Alercard
Copy link

I have this issue too!

vue-cli · Failed to download repo vuejs-templates/[object Object]: Response code 404 (Not Found)

@hiamirh
Copy link

hiamirh commented May 30, 2018

vue-init vuetifyjs/webpack-ssr my-project
worked for me

@Alercard
Copy link

That's right, vue-init works for me too! Ty

@dejongnj
Copy link

dejongnj commented May 31, 2018

Seem like this is a well reported issue but having the same issue here. Some system information, if it helps:
macOS Sierra 10.12.6
Node v8.11.2
npm v5.6.0

EDIT vue-init webpack my-project worked for me

@rickychan0611
Copy link

its vue-init (with -) but not vue init

@HelloAndyZhang
Copy link


win下是这样!

@Randysheng
Copy link

i have the same issue!
OS:win10
node:v9.10.1
npm:5.6.0
vue-cli:2.9.4

@bobpappas
Copy link

bobpappas commented May 31, 2018

From the 'vue -h' of 3.0.0-beta15:
init [options] generate a project from a remote template (legacy API, requires @vue/cli-init)

you have to npm install -g @vue/cli-init

@rickychan0611
Copy link

They have updated the cli . Now you need a hyphen between vue and init. So it's vue-init

@zqcxxx
Copy link

zqcxxx commented May 31, 2018

i have solved this problem. just use vue-init not vue init

@ale51
Copy link

ale51 commented May 31, 2018

I don't know why, but I can do it as below.

vue-init webpack my-project

@96-chu
Copy link

96-chu commented May 31, 2018

it works!! vue-init instead of vue init

@nothing-undefined
Copy link

@yyx990803 it still doesn't work

@alennx
Copy link

alennx commented May 31, 2018

edit vue-init webpack my-project worked for me,thanks

@DawidMmM
Copy link

Confirm that vue-init webpack my-project works.

@stevenlii
Copy link

vue-init worked for me at win10

@Akryum
Copy link
Member

Akryum commented May 31, 2018

@Muzietto Please be respectful of the work of others, especially if you can use it for free. Thank you.

@Gargo
Copy link

Gargo commented Jul 12, 2018

vue-init not found - windows 10, other ways don't work too

@chriswaweru70
Copy link

also having this problem

@ZGQG
Copy link

ZGQG commented Aug 13, 2018

i already update the npm and use "vue-init webpack my-project" and "vue-init webpack-simple my-project",and still don't work.my OS is win10

@YuFy1314
Copy link

I have almost the same problem.
vue-cli · Failed to download repo vuejs-templates/clie: Response code 404 (Not Found)

This problem should be the installation of vue-cli, If you install global vue-cli, the problem is solved.
I installed the local vue-cli, so this error occurred.

@ethanyou725
Copy link

npm install -g @vue/cli-init

then the problem is solved.😁

@TurboDizel
Copy link

TurboDizel commented Nov 21, 2018

Hi!
Not one of the solutions did not fit
Windows 8.1
image

You have just changed the project. Maybe that's why certificates error

Upd
I completely reinstalled node, physically deleting all files
did not help!

Executed the
SET command npm_config_strict_ssl = false

And after that, the "vue init webpack NNN" worked!

@leniNikky
Copy link

  • check if npm has http-proxy: npm config ls -l
  • if it has,delete : npm config delete http-proxy
  • and then you can try again: vue init webpack my-project
    it would work

@leniNikky
Copy link

but other projects may need http-proxy, you can set it again: npm config set https-proxy http://server:port

@ghost
Copy link

ghost commented Apr 12, 2019

I don't know why, but I can do it as below.

vue-init webpack my-project

it's worked for me thank you..

@joelscampos
Copy link

This worked for me:
vui ui

It opens a browser window with a GUI.

@c-yjian
Copy link

c-yjian commented Jul 11, 2019

same here + 1

@Klein-git
Copy link

please try
sudo vue init webpack my-project

@dbseorms16
Copy link

try this!
$ npm install -g vue-cli
$ vue init webpack my-project
$ cd my-project
$ npm install
$ npm run dev

@kroxoldyfitianisch
Copy link

kroxoldyfitianisch commented Apr 17, 2020

Whats up with the advanced webpack?
I tried to create it like:

vue init webpack-advanced myapp
I´ll get:
vue-cli · Failed to download repo webpack-advanced: Response code 404 (Not Found)

If I type:

vue init webpack myapp
It works.

But I need the advanced package. Help please!

@LucasDetroit
Copy link

Hi! Thanks all for your help.

For me, vue-init didn't work, but i tried something and worked (surprisingly):

  1. I used vue init webpack <-- i accidentally used the default name for the project 'my-project' and it worked
  2. I thought it might also work if i deleted the existing folder i wanted the files to be created in and tried again
  3. I used vue init webpack <-- this time plus the real name of my project 'vue-tutorial' (i'm taking a Vue tutorial ;) ) and it worked

Maybe this can be followed by someone else and may work. I hope it does :)

Best regards!

@Cheby131452
Copy link

Hi! Thanks all for your help.

For me, vue-init didn't work, but i tried something and worked (surprisingly):

  1. I used vue init webpack <-- i accidentally used the default name for the project 'my-project' and it worked
  2. I thought it might also work if i deleted the existing folder i wanted the files to be created in and tried again
  3. I used vue init webpack <-- this time plus the real name of my project 'vue-tutorial' (i'm taking a Vue tutorial ;) ) and it worked

Maybe this can be followed by someone else and may work. I hope it does :)

Best regards!

I tried your advice, but it still didn't work. It's very metaphysical.

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