npm install killed without a good error

淺唱寂寞╮ 提交于 2020-01-04 02:26:28

问题


When I run

ng new new-app

to create an angular2 app, angular-cli creates the files and runs

npm install

The npm install is then killed without any error message. Almost all answers online pointed to a possible problem with running out of memory, so I upgraded my VPS from 512MB to 1GB of RAM.

It seems unlikely to me that a fresh Ubuntu 16.04 with 1GB RAM cannot npm install a standard angular2 app. Is there anything else I can try other than adding swap or ram?

Thanks!


回答1:


Adding RAM to the machine solved the problem (from 1GB to 2GB).

If someone else encounters the problem and cannot or doesn't want to add RAM, consider using yarn instead of npm.



来源:https://stackoverflow.com/questions/39447853/npm-install-killed-without-a-good-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!