cnpm meldet bei der Installation immer einen Fehler

Melden Sie immer einen Fehler, wenn Sie npm zum Herunterladen der cnpm-Installation verwenden

Fügen Sie hier eine Bildbeschreibung ein

Lösung:


 
1、执行:
 
npm config get proxy
npm config get https-proxy
如果返回值不为null,继续执行:
(这一步很重要,一定要保证两个命令的返回值都为null,话说回来,应该出现这个错误这两个返回值有不为null的)
npm config set proxy null
npm config set https-proxy null
2、执行:
npm config set registry http://registry.cnpmjs.org/

可以使用淘宝镜像安装
npm install -g cnpm --registry=https://registry.npm.taobao.org 

Fügen Sie hier eine Bildbeschreibung ein

perfekte Lösung

Fügen Sie hier eine Bildbeschreibung ein

Supongo que te gusta

Origin blog.csdn.net/weixin_45289656/article/details/132492745
Recomendado
Clasificación