安装 cnpm 出现 Unsupported URL Type “npm:“: npm:string-width@^4.2.0
Unsupported URL Type "npm:": npm:string-width@^4.2.0
可能是 node 版本太低了,需要安装低版本的 cnpm 试试
npm cache clean --force
npm config set strict-ssl false
npm install -g cnpm --registry=https://registry.npmmirror.com
改为
npm install -g cnpm@7.1.1 --registry=https://registry.npmmirror.com
cnpm - npm