nodejs:12.17.0
npm install -g cnpm --registry=https://registry.npmmirror.com
装了之后保存,以下是报错截图。

看样子像是node版本太低或者cnpm版本过高的问题,平时用的node都是12的版本,就把cnpm降降得了,
npm install -g cnpm@8.x --registry=https://registry.npmmirror.com
这样就成功了,cnpm -v 查一下,确认没问题。

nodejs:12.17.0
npm install -g cnpm --registry=https://registry.npmmirror.com
装了之后保存,以下是报错截图。

看样子像是node版本太低或者cnpm版本过高的问题,平时用的node都是12的版本,就把cnpm降降得了,
npm install -g cnpm@8.x --registry=https://registry.npmmirror.com
这样就成功了,cnpm -v 查一下,确认没问题。

9970

被折叠的 条评论
为什么被折叠?