Linux 下, npm i 老是被killed 已杀死

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

node:v8.12.0  npm v6.4.1

npm i 安装到一半会报这样到错误,并终止:

npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
已杀死.............] - fetchMetadata: sill resolveWithNewModule [email protected] checking installable status

百度问题: https://www.cnblogs.com/owenyang/p/4282283.html

原因:机器内存不足

linux 查看内存命令:free -h

            total        used        free      shared  buff/cache   available
Mem:           488M        227M        5.9M        472K        255M        234M
Swap:            0B          0B          0B

 

加大内存,继续npm i

 

 

 

转载于:https://my.oschina.net/u/180293/blog/2252524

你可能感兴趣的:(Linux 下, npm i 老是被killed 已杀死)