"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