Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`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 [email protected]: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 [email protected]: 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 [email protected]_4...        | 

Any more ideas?

like image 311
kramer65 Avatar asked Jun 30 '16 15:06

kramer65


People also ask

Why npm install failed?

This cause of this error is that one of the dependencies you define in your package. json file fails to be installed properly on your computer. This means that npm fails to install the node-sass module that's added as a dependency to the n-app project.

How do I stop npm from stopping?

To stop a running npm process, press CTRL + C or close the shell window.


2 Answers

I haved same problem, my solution:

  sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024   sudo /sbin/mkswap /var/swap.1   sudo /sbin/swapon /var/swap.1 

this commands changed configuration for swap

like image 67
Yuriy Korman Avatar answered Oct 04 '22 05:10

Yuriy Korman


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.

like image 43
Chad Avatar answered Oct 04 '22 04:10

Chad