将npm源地址改为淘宝源
npm config set registry https://registry.npm.taobao.org
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm终端运行报错(cnpm.ps1)
任意文件夹位置,按住shift+鼠标右键,打开Powershell,输入下面代码:
set-ExecutionPolicy RemoteSigned
npm config set registry https://registry.npm.taobao.org
npm install -g cnpm --registry=https://registry.npm.taobao.org
任意文件夹位置,按住shift+鼠标右键,打开Powershell,输入下面代码:
set-ExecutionPolicy RemoteSigned