在Ubuntu上安装Bower [英] Installing Bower on Ubuntu

查看:97
本文介绍了在Ubuntu上安装Bower的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试按照Bower主页上的说明在XUbuntu 13.10上安装Bower,然后执行 sudo apt-get install npm sudo npm install -g bower 在命令行上发布 bower 后,我得到以下信息:

I'm trying to install Bower on XUbuntu 13.10, following the instructions on the Bower home page, after doing sudo apt-get install npm and sudo npm install -g bower I get the following after issuing bower on the command line:

/usr/bin/env: node: No such file or directory

然后我安装Node(尽管我认为那不是不必要的,因为Bower唯一的依赖关系是NPM,对吗?)。无论如何,在使用 sudo apt-get install节点安装节点之后,使用了任何Bower命令,例如 bower help

I then install Node (even though I assume that would not be unnecessary since Bower's only dependency would be NPM, correct?). Anyhow, after I install node with sudo apt-get install node any of the Bower commands, such as bower help, simply don't do anything, i.e. output nothing.

如何在Ubuntu上安装Bower(最好不手动下载各种版本的东西)?

How to install Bower on Ubuntu (preferably without manually downloading various versions of things)?

推荐答案

sudo ln -s /usr/bin/nodejs /usr/bin/node

或安装旧版nodejs:

or install legacy nodejs:

sudo apt-get install nodejs-legacy

此GitHub问题

这篇关于在Ubuntu上安装Bower的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆