安裝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