E403 npm ERR! 403 403 Forbidden


安装包时出现

E403

npm ERR! 403 403 Forbidden - GET xxx(网址)

npm ERR! 403 In most cases, you or one of your dependencies are requesting

npm ERR! 403 a package version that is forbidden by your security policy.

问题:仓库位置不对

解决:

修改仓库位置到npm官网

查看仓库列表 有*的是当前仓库: nrm ls

切换仓库到npm:npm config set registry https://registry.npmjs.org/ 

切换后就可以重新安装完成了

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM