Installing Bower on Ubuntu

前端 未结 8 1138
孤城傲影
孤城傲影 2021-01-29 17:50

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

8条回答
  •  面向向阳花
    2021-01-29 18:05

    on Ubuntu 12.04 and the packaged version of NodeJs is too old to install Bower using the PPA

    sudo add-apt-repository ppa:chris-lea/node.js 
    sudo apt-get update
    sudo apt-get -y install nodejs
    

    When this has installed, check the version:

    npm --version
    1.4.3
    

    Now install Bower:

    sudo npm install -g bower
    

    This will fetch and install Bower globally.

提交回复
热议问题