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

Getting EUNSUPPORTEDPROTOCOL error when creating project #5800

Closed
dland512 opened this issue Aug 17, 2020 · 7 comments · Fixed by #5827
Closed

Getting EUNSUPPORTEDPROTOCOL error when creating project #5800

dland512 opened this issue Aug 17, 2020 · 7 comments · Fixed by #5827

Comments

@dland512
Copy link

Version

4.5.3

Environment info

Environment Info:

  System:
    OS: macOS 10.15.5
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 8.11.1 - ~/.nvm/versions/node/v8.11.1/bin/node
    Yarn: Not Found
    npm: 5.6.0 - ~/.nvm/versions/node/v8.11.1/bin/npm
  Browsers:
    Chrome: 84.0.4147.125
    Edge: Not Found
    Firefox: 79.0
    Safari: 13.1.1
  npmGlobalPackages:
    @vue/cli: 4.5.3

Steps to reproduce

vue create my-project
select Default ([Vue 2] babel, eslint)

What is expected?

It should create a new vue project

What is actually happening?

I'm getting this error

Vue CLI v4.5.3
✨  Creating project in /Users/me/my-project.
🗃  Initializing git repository...
⚙️  Installing CLI plugins. This might take a while...

npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:vue-loader@^16.0.0-beta.3

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/me/.npm/_logs/2020-08-17T18_49_36_738Z-debug.log
 ERROR  command failed: npm install --loglevel error

This was working fine a few days ago, not sure what happened.

@sodatea
Copy link
Member

sodatea commented Aug 18, 2020

As a workaround, please use npm >= 6.9

@sodatea
Copy link
Member

sodatea commented Aug 18, 2020

When I implemented this #5718
I tested with npm i @vue/cli-service under npm 5 and the failed installation of the optional dependency did not throw an error.

Turns out this only works with npm i + some specific package, not npm i along with a package.json.
So to support npm 5, we might need to turn the npm install call to several npm install some-package calls.

@ricardogffcouto
Copy link

I get this error with @vue/cli 4.5.4 and npm 6.14.8, any idea why?

@sanfran1068
Copy link

I get this same error with @vue/cli 4.5.4 and npm 6.10.3, exhausted

@anamarquezz
Copy link

anamarquezz commented Oct 13, 2020

This fix my problem

npm install -g npm

Upgrade npm version

@hubert17
Copy link

hubert17 commented Jul 5, 2021

This fix my problem

npm install -g npm

Upgrade npm version

Thank you!

@hetasanghvi-zz
Copy link

npm install -g npm

Thank you!

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

Successfully merging a pull request may close this issue.

7 participants