search

Home  >  Q&A  >  body text

node.js - Why does the following error occur when npm installs vue-cli??!!!?

C:UsersAdministratorDesktopeleme>npm i -g vue-cli
npm ERR! path C:UsersAdministratorAppDataRoamingnpmnode_modulesvue-clino
de_modulesuglify-js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:UsersAdministrato
rAppDataRoamingnpmnode_modulesvue-clinode_modulesuglify-js' -> 'C:Users\
AdministratorAppDataRoamingnpmnode_modulesvue-clinode_modules.uglify-js.D
ELETE'
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:UsersAdministratorAppDataRoamingnpm-cache_logs2017-06-24T0
8_38_51_835Z-debug.log

C:UsersAdministratorDesktopeleme>npm i vue-cli -g
npm ERR! path C:UsersAdministratorAppDataRoamingnpmnode_modulesvue-clino
de_modulesuglify-js

巴扎黑巴扎黑2766 days ago1348

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-06-27 09:21:33

    I tried it and it can be installed, no problem. Is it a problem with your network or nodejs version

    reply
    0
  • 漂亮男人

    漂亮男人2017-06-27 09:21:33

    Try replacing yarn installation

    reply
    0
  • ringa_lee

    ringa_lee2017-06-27 09:21:33

    npm problem, it is recommended to reinstall npm

    reply
    0
  • Cancelreply