NPM安装被杀死,没有一个很好的错误 [英] npm install killed without a good error
问题描述
我跑步时
ng new new-app
要创建angular2应用,angular-cli将创建文件并运行
npm install
然后,npm安装将被删除,而没有任何错误消息.几乎所有在线答案都指出内存不足可能是一个问题,因此我将VPS从512MB升级到了1GB RAM. >
在我看来,带有1GB RAM的全新Ubuntu 16.04无法npm安装标准的angular2应用程序. 除了添加swap或ram之外,我还能尝试其他什么吗?
谢谢!
向计算机添加RAM解决了该问题(从1GB到2GB).
如果其他人遇到问题并且不能或不想添加RAM,请考虑使用yarn而不是npm .
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!
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.
这篇关于NPM安装被杀死,没有一个很好的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!