wordpress官方主题,网站建设优化服务平台,有做自由行包车的网站,wordpress修改图标npm安装卡住问题(最新版)
背景#xff1a;
最近这两天用npm安装一些包的时候#xff0c;发现一直卡住#xff1a; 报错#xff1a;
idealTree:npm: sill idealTree buildDeps之前能用的现在不能用了#xff0c;我一想#xff0c;是不是源头的问题#xff0c;还真是…npm安装卡住问题(最新版)
背景
最近这两天用npm安装一些包的时候发现一直卡住 报错
idealTree:npm: sill idealTree buildDeps之前能用的现在不能用了我一想是不是源头的问题还真是之前设置的源头是
npm config set registry https://registry.npm.taobao.org但是现在好像不能用了需要更换安装源头
npm安装
获取当前源 npm config get registry 可以看到我已经更换完毕了如果跟我的不一样需要执行下面命令更新源
npm config set registryhttps://registry.npmmirror.com
执行以下命令查看是否配置成功
npm config get registrycnpm安装
npm install -g cnpm --registryhttps://registry.npmmirror.com 现在我们可以使用cnpm安装代替npm安装
cnpm install -g nodemon
cnpm install -g 包 //-g 代表全局安装