最近在使用npm安装某些依赖时,一直卡在node lib/install.js, 初步判断是网络问题,这个文件没有下载下来。

> pngquant-bin@5.0.2 postinstall /**/test/node_modules/pngquant-bin
> node lib/install.js

解决方案

1.添加参数

npm install --ignore-scripts

 

--ignore-scripts表示npm将不会运行在package.json中指定的scripts脚本。



作者:飞鱼YE
链接:https://www.jianshu.com/p/44cc1f0c863e
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
posted on 2022-09-21 15:12  啊修  阅读(1002)  评论(0编辑  收藏  举报