Npm Please try using this command again as root/administrator

后端 未结 30 925
旧巷少年郎
旧巷少年郎 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 06:55

    I was already running the Node Command Window as Administrator. As mentioned by many above, the following command with --f (force) solved my issue.

    npm cache clean -f

    After the Cache Clean, the install was flawless. See the screenshot for reference

提交回复
热议问题