[英]I get a warning that npm update check failed
Following is the error message I get after installing npm packages以下是我安装 npm 包后收到的错误消息
npm update check failed npm 更新检查失败
Try running with sudo or get access to the local update config store via尝试使用 sudo 运行或通过访问本地更新配置存储
sudo chown -R $USER:$(id -gn $USER) /home/ubuntu/.config须藤 chown -R $USER:$(id -gn $USER) /home/ubuntu/.config
Answer from GitHub :来自GitHub 的回答:
Fix for windows, I got this message :
修复 Windows,我收到此消息:
npm update check failed Try running with sudo or get access to the local update config store via sudo chown -R $USER:$(id -gn $USER) C:\\Users.config
npm 更新检查失败尝试使用 sudo 运行或通过 sudo chown -R $USER:$(id -gn $USER) C:\\Users.config 访问本地更新配置存储
so I went on to C:\\Users.config and deleted the "configstore" folder.
所以我继续到 C:\\Users.config 并删除了“configstore”文件夹。 once I done this, next time a ran npm start, the folder was re-generated, and error stopped
完成此操作后,下次运行 npm start 时,将重新生成该文件夹,并停止错误
If you are on a Mac, this might help如果您使用的是 Mac,这可能会有所帮助
sudo npm i -g npm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.