繁体   English   中英

无法安装Twitter Bootstrap Node.js依赖项(在Ubuntu上)

[英]Fail to install twitter bootstrap node.js dependencies (on Ubuntu)

我已经下载引导从3.1.1源文件的官方网站 ,并尝试运行时收到错误npm installbootstrap/下面的目录时, 引导安装方向从网站。

我在从发行版本存储库安装了npm 1.3.10的Ubuntu 14.04平台上,可以顺利运行npm install -g grunt-cli

但是,当我尝试从引导目录进行sudo npm install时,我看到一长串成功的GET消息,这些消息随后因以下错误而终止:

npm http 304 https://registry.npmjs.org/proto-list

> phantomjs@1.9.7-4 install /home/cboettig/Documents/code/thirdparty/bootstrap/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs
> node install.js

npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1
npm ERR! not ok code 0

我已经咨询了警告中提到的README.Debian ,这似乎只是说Debian平台需要调用nodejs而不是node来避免名称空间冲突。 我不确定如何验证是否有问题。

我发现错误消息“ weird error 1也没有特别的帮助。

如何干净无误地安装此项目?

运行这些命令

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install python-software-properties python g++ make nodejs

从存储库安装node.js。

安装nodejs-legacy,此修复错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM