Home > Back-end >  Failed to install Vue.js Cli
Failed to install Vue.js Cli

Time:10-21

node -v: v8.10.0

npm -v: 3.5.2

while running npm install -g @vue/cli or sudo npm install -g @vue/cli

got the error below and vue Cli to download vue.js cli

enter image description here

CodePudding user response:

You are using a rather old version of npm. The current version is 6.9.0, and the packages you are working with are asking for npm >= 5.5.1.

You need to update your node version, if possible always use latest node version

Nodejs version 14.4.

And if you have project that required different node version then use

NVM - node version manager

Just use sudo for global install

sudo npm install -g @vue/cli
  • Related