npm install卡住问题解决

清理缓存

npm cache clean --force

并且删除 package-lock.json
删除 node_modules

配置淘宝镜像下载

1.切换下载源路径

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

2.检查是否配置成功

npm config get registry 

3.初始化

npm install

配置之后还是卡住 那就是网络的问题了,切换自己热点下吧~

你可能感兴趣的:(Js,npm,node.js,前端)