Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing bootstrap with npm is failing

I am attempting to install bootstrap (LESS) with npm on Debian but it keeps failing.

This is exactly what i am doing:

git clone https://github.com/twbs/bootstrap.git
npm install

The error i get is simply Killed.

Running the npm install in verbose i do not get any error:

npm verb readDependencies using package.json deps
npm http GET https://registry.npmjs.org/postcss/-/postcss-2.2.5.tgz
npm info retry fetch attempt 1 at 01:00:50
npm verb fetch to= /tmp/npm-3690-Rr0nZSRK/registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000010.tgz
npm info postinstall [email protected]
Killed
like image 876
JavaCake Avatar asked Dec 19 '25 19:12

JavaCake


1 Answers

npm install

simply installs the upstream dependencies based on what is listed in the package.json in your current directory

Try this

git clone https://github.com/twbs/bootstrap.git
cd bootstrap
npm install  #  installs dependencies
npm install -g bootstrap  # does actual install of bootstrap into module dir

note the -g in the install command puts bootstrap into your global npm module directory as defined by environment variable $NODE_PATH

like image 121
Scott Stensland Avatar answered Dec 21 '25 11:12

Scott Stensland