Npm Please try using this command again as root/administrator

后端 未结 30 883
旧巷少年郎
旧巷少年郎 2020-12-02 06:38

I\'ve been desperately trying to install modules using node.js but it always fails getting packages with npm.

I logged in as Administrator and used powershell/cmd wi

30条回答
  •  无人及你
    2020-12-02 07:01

    $ npm cache clean
    npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead.

    I tried running npm cache verify with admin rights and it worked after that.

提交回复
热议问题