kramer65 kramer65 - 18 days ago 5
Javascript Question

`npm install` ends with "Killed"

I'm trying to run Telescope (a meteor app) on an Ubuntu 16.04 server. I follow the instructions in the readme:

curl https://install.meteor.com/ | sh
git clone git@github.com:TelescopeJS/Telescope.git
npm install


The first two commands run without an error, but the last command end in
Killed
:

$ npm install
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
extract:moment → gunzTarP ▐ ╢█████████████████████████████████████████████████░░░░░░░░░░╟
Killed


Since it doesn't give any information I'm unsure what could be wrong here. Does anybody know how I can solve this? All tips are welcome!

[EDIT]
Using the tip of @Mills in the comments I first ran
npm install cross-spawn
and then
npm install
again. This fixed the
npm install
issue, but when I now try to run the app using
meteor
it ends with "Killed" again:

$ meteor
Killednloading meteor-tool@1.3.2_4... |


Any more ideas?

Answer

I am running into a similar issue installing npm packages and getting the message "Killed" and a non-zero exit status. For my scenario, it was because my system was running out of memory and I had no swap configured. Configuring swap fixed my problem.