node 版本 v6.2.0
npm 版本 3.8.9
之前安装使用命令:
npm install cnpm -g --registry=https://registry.npm.taobao.org
安装失败。CERT_HAS_EXPIRED 证书过期。然后搜索之后发现 https://registry.npm.taobao.org 的仓库地址已经更新为 https://registry.npmmirror.com
然后修改命令安装:
npm install cnpm -g --registry=https://registry.npmmirror.com
出现如下的错误。
npm ERR! Windows_NT 10.0.22000
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "cnpm" "-g" "--registry=https://registry.npmmirror.com"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! Unsupported URL Type: npm:string-width@^4.2.0
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\happy8\jee\src\www\yfq-crm\npm-debug.log
转载请注明:可思数据 » npm 安装 cnpm 安装不上的问题。