今天要逆向跑一个electron,但是npm install一直卡在
reify:element-plus: timing reifyNode:node_modules/lodash Completed in 6664ms
这里一动不动,一番研究之后发现可能跟用的镜像有关系,我原本是官方镜像,总感觉第三方镜像有一些莫名的问题,然后之前迫不得已换到淘宝镜像,最后从淘宝镜像切换到官方就好了。
此篇文章就做为镜像地址的记录吧
设置为官方镜像
npm config set registry https://registry.npmjs.org
可选的其他镜像有:
npm get registry
npm install --registry=https://registry.npmjs.org/
