安装cnpm错误:"registry=https:\registry.npm.taobao.org" as it does not contain a package.json file.


"registry=https:\registry.npm.taobao.org" as it does not contain a package.json file.

npm install -g cnpm registry=https://registry.npm.taobao.org

npm ERR! code ENOLOCAL
npm ERR! Could not install from "registry=https:\registry.npm.taobao.org" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:

本想安装一个cnpm的,结果一直报错npm ERR! code ENOLOCAL,"registry=https:\registry.npm.taobao.org" as it does not contain a package.json file.

npm install -g cnpm --registry=https://registry.npm.taobao.org

到最后发现只要清空一下缓存就好了!

npm cache clean --force

再输入安装命令就可以了

npm install -g cnpm --registry=https://registry.npm.taobao.org


免责声明!

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



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