Installation vue-cli error -4058 solution of

It was wrong in the installation of such vue scaffolding Times, I visited the hills still can not find the answer, someone told me to use cnpm installation, but there are a lot vue cnpm installed inside the pit:

npm WARN checkPermissions Missing write access to C:\Users\liuyg\AppData\Roaming\npm\node_modules\vue-cli\node_modules\cliui\node_modules\wordwrap
npm ERR! path C:\Users\liuyg\AppData\Roaming\npm\node_modules\vue-cli\node_modules\cliui\node_modules\wordwrap
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'C:\Users\liuyg\AppData\Roaming\npm\node_modules\vue-cli\node_modules\cliui\node_modules\wordwrap'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!   C:\Users\liuyg\AppData\Roaming\npm-cache\_logs\2017-10-18T14_34_23_721Z-debug.log

So I continue to turn red envelopes stick, finally found a solution, the problem looks like a network proxy.

Npm for a like installation source, as follows:

1. config command

npm config set registry https://registry.npm.taobao.org

npm info underscore (if the above command will be configured correctly string response)

2. specify the command line

npm --registry https://registry.npm.taobao.org info underscore

Then install just fine

      If this article fails to help you solve the problem, then you should probably install a higher version of node.js (node ​​-v view the version), the version will replace the low version to try (such as version 8.12.0).

Published 23 original articles · won praise 7 · views 20000 +

Guess you like

Origin blog.csdn.net/ghd602338792/article/details/83791527