流沙团
npm更换镜像
2022-11-2 流沙团

更换为淘宝镜像


npm config set registry https://registry.npm.taobao.org





npm config get registry



切换会原来的镜像


npm config set registry https://registry.npmjs.org



安装 cnpm


npm install -g cnpm —registry=https://registry.npm.taobao.org



使用cnpm 安装module


cnpm install xxxx -g



webpack执行失败 无法加载文件webpack.ps1

管理员模式运行powershell


set-ExecutionPolicy RemoteSigned


发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容