Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NPM Install with package.json exits during extract --> gunzTarPerm with no error message

I have a strange issue with npm install. I am just running npm install within my project with a package.json in the same directory

Here's the relevant part of the package.json http://pastebin.com/zgT6eRxC

Everythings seems to go ok until it's hits this part in the process

extract → gunzTarPerm

I ran npm install --verbose but it just gets to here and stops/exits without any error message or text. My node_modules is left incomplete.

I don't know if this is relevant but before this last line it's nuking a bunch of files

Example

npm verb gentlyRm don't care about contents; nuking /<path>/node_modules/.staging/require-bede8d129b4b602814b0d94932a5f956

Software Versions:

NPM - 3.3.12
Node - 5.1.0
Ubuntu - 14.04.03

Does anyone have a clue on what's going on here. I can do npm install on my Arch Linux dev machine and everything install fine. I'm not sure what's missing with my Ubuntu installation.

Thanks

like image 763
Irlanco Avatar asked Dec 03 '15 01:12

Irlanco


1 Answers

Answering my own question. Was running this on a 512MB DigitalOcean Ubuntu Server. Turns out there was not enough memory to finish things up. I made a swap file and it finishes.

Here a link on how to make a swap file https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

like image 177
Irlanco Avatar answered Nov 15 '22 21:11

Irlanco