使用npm安装bootstrap失败(Installing bootstrap with npm is failing)

编程入门 行业动态 更新时间:2024-10-27 23:27:03
使用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 Killed

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 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 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

更多推荐

本文发布于:2023-08-02 21:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1381549.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:bootstrap   npm   failing   Installing

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!