node:v8.12.0 npm v6.4.1
npm i 安装到一半会报这样到错误,并终止:
npm WARN deprecated socks@1.1.10: 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 ansi-styles@3.2.1 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
来源:oschina
链接:https://my.oschina.net/u/180293/blog/2252524