1、切换为淘宝镜像:
npm config set registry http://registry.npm.taobao.org/
(若需要)切换为原本的npm镜像:
npm config set registry https://registry.npmjs.org/
2、彻底删除node_modules
①安装rimraf模块:
npm install -g rimraf
②删除命令:
rimraf node_modules
1、切换为淘宝镜像:
npm config set registry http://registry.npm.taobao.org/
(若需要)切换为原本的npm镜像:
npm config set registry https://registry.npmjs.org/
2、彻底删除node_modules
①安装rimraf模块:
npm install -g rimraf
②删除命令:
rimraf node_modules