[英]Installing bootstrap with npm is failing
我试图在Debian上使用npm安装bootstrap(LESS)但它仍然失败。
这正是我在做的事情:
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 ansi-regex@0.2.1
Killed
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
注意install命令中的-g将bootstrap放入环境变量$ NODE_PATH定义的全局npm模块目录中
您还可以通过“npm config set jobs 1”降低内存消耗,对我有用;)链接: https : //community.c9.io/t/npm-install-is-killed/847
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.