2014-10-19 59 views
3

我试图在Debian上安装使用npm的引导程序(LESS),但它保持失败。使用npm安装引导程序失败

这正是我在做什么:

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

我得到的错误是简单地Killed

运行在冗长的npm install我没有得到任何错误:

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 

回答

2
npm install 

安装简单基于什么在的package.json在当前目录

尝试列出上游的依赖这

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 

注意-g在安装命令pu TS引导入您的全球NPM模块目录 环境变量$ NODE_PATH定义

+3

我只是解决了我的问题。很明显,我在运行'npm install'时耗尽内存。我添加了更多的交换,并开始安装没有任何问题。显然,错误是在系统日志中打印的,因为我忘了检查。 – JavaCake 2014-10-20 19:39:31

+0

您可能需要将其添加到您的问题中,以回答您自己的问题。我遇到了同样的问题,并且正在寻找解决方案,而没有在我的日志中的任何地方看到“Killed”:/ – jkulak 2015-01-13 16:48:38