使用npm安装bootstrap失败(Installing bootstrap with npm is failing)
我试图在Debian上使用npm安装bootstrap(LESS)但它仍然失败。
这正是我在做的事情:
git clone https://github.com/twbs/bootstrap.git npm install我得到的错误就是被Killed 。
在verbose中运行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 KilledI 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 installThe 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 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 installsimply 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 dirnote the -g in the install command puts bootstrap into your global npm module directory as defined by environment variable $NODE_PATH
更多推荐
发布评论