3

When i try to install a vue js project, i got this error message

npm ERR! Linux 4.15.0-101-generic
npm ERR! argv "/usr/local/bin/node" "/home/za/node_modules/.bin/npm" "install" "--loglevel" "error"
npm ERR! node v12.18.3
npm ERR! npm  v2.15.12

npm ERR! Unsupported URL Type: npm:vue-loader@^16.0.0-beta.3
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/za/Bureau/Laravel/belenus/npm-debug.log
 ERROR  command failed: npm install --loglevel error

My npm version is 6.14.7, @vue/cli is 4.5.3, node is 12.18.3 and Ubuntu 18.04.5 LTS

3 Answers 3

1

Try this:

npm cache clean --force 

You can check this post for other possible solutions.

Sign up to request clarification or add additional context in comments.

5 Comments

I try npm cache clean --force and npm cache verify but it's did not work for me
@Zekura Have you tried other solutions mentioned in the linked post?
I also try npm config set unsafe-perm true and editing the ~/.vuerc from "useTaobaoRegistry": false to true but it's did not work for me too
Yes make sure you have the latest versions. NPM as well
I install node js 14.8.0 but it's steel doesn't work :-(
1

I ran into this today. The npm:vue-loader looked like a typo, so I did a search and found it in the package lock file. Linked to the cli-service dependency I was using. I removed this line from my package.json file

"@vue/cli-service": "~4.5.0",

As I wasn't using that dependency any more.

If you need that dependency you might have luck down grade the cli-service. Otherwise you'd have to log a bug with the vue team

Comments

0

All of previous answers didn't work for me. But i found chine's answer - and it's working:

  1. npm install npm@latest -g
  2. npm install -g npm
  3. npm install

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.