Npm Please try using this command again as root/administrator

后端 未结 30 885
旧巷少年郎
旧巷少年郎 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:02

    I don't know which steps worked for me. But these are my steps to get rid of this error:

    1. Updated Node.js
    2. Ran npm cache clean command in Command prompt ( With some element of doubt for cache presence)
    3. Ran react-native init in command prompt as Administrator (on Windows OS), hoping works well with sudo react-native init on Mac OS

提交回复
热议问题