Vue-cli cannot be installed, or npm install installation cannot be performed if it is already installed

after testing, under the premise that vue-cli has been installed, vue-cli can be initialized
but
npm install cannot be installed after vue init webpack execution

this error will also be reported if vue-cli, is not installed and vue-cli is installed

error message is shown in figure


mine is fine. But it seems to be the reason: https://github.com/beautify-w.


I have the same problem. Looking for a solution.


resolved! Re-download a node.js 8.5.0 and then update the cnpm, and then ok


also encountered the same problem. There was no problem before, just today. Strange


who knows how to solve it! Hurry
if you force it

clipboard.png


nodenodecnpm
node8.4.0
cnpm 5.1.1
sudo cnpm install -g vue-cli

clipboard.png

Network problems, just run the command a few more times.


I came across it, too. I tried yarn to solve it, but npm still couldn't solve


how did you install it? Is that so?

cnpm install-g vue-cli

install with administrative privileges?


window7 64-bit
I've come across it, and I haven't found a solution yet.
vue init webpack sell
cd sell
npm install.


Network problems try cnpm install


remind cnpm install via @ Zeroo upstairs that it can be solved under some networks, but it is not the problem

The

method comes from @ Hu Xiaodai

1) the latest version of js-beautify failed
2) execute

   npm install --save-dev js-beautify@1.6.14  vue-loader@13.0.4

3) npm install can be executed


when a package cannot be downloaded, I have the following solution.
1 Network problem using proxy to change npm to cnpm
2 package version configuration problem npm install packageName-- save
3node version problem needs to be updated
generally encountered this problem is solved


suppose you run npm install with cmd, then run
as administrator on cmd right


upgrade node to version 8.5.0 and cnpm to 5.1.1, but the problem is still unsolved and the css-beautify problem will be reported. Dizzy, how to solve this

install it again. Is it really a network problem


the module "fsevents" required by css-beautify can only be used on Mac systems, and the system version cannot be checked when windows attempts to install.


try it another time. Sometimes it is a network problem.


similar problems are encountered during installation. The solutions are as follows:
1. Install
2 with administrator privileges. Update node to the latest version
3. Use cnpm install instead of npm to install
4. Try changing time installation


  1. linux: rm-rf. / node_modules windows rm. / node_modules
  2. npm I

the solution is the same as trying to restart the computer. If there is a problem with npm, delete the node_modules and reinstall it


js-beautify. There is something wrong with the latest version 1.7.0. Lower one version of js-beautify@1.6.14


replace npm with cnpm

Menu