Linux 下, npm i 總是被killed 已殺死

node:v8.12.0  npm v6.4.1html

npm i 安裝到一半會報這樣到錯誤,並終止:node

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 statuslinux

百度問題: https://www.cnblogs.com/owenyang/p/4282283.htmlnpm

緣由:機器內存不足socket

linux 查看內存命令:free -hfetch

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

 

加大內存,繼續npm iblog

相關文章
相關標籤/搜索