-
2016/07/25 [bower]インストール
-
npm(Node.jsパッケージ管理)インストール
# aptitude install npm # ln -s /usr/bin/nodejs /usr/bin/node
bowerインストール
# npm install -g bower
bower確認・アップデート
$ bower -v 1.7.9 $ bower update bower jquery#^3.1.0 cached https://github.com/jquery/jquery-dist.git#3.1.0 bower jquery#^3.1.0 validate 3.1.0 against https://github.com/jquery/jquery-dist.git#^3.1.0
bowerでパッケージインストール
$ bower install jquery $ bower list bower check-new Checking for new versions of the project dependencies... yoo /home/yoo └── jquery#3.1.0 extraneous $ bower install bootstrap bower bootstrap#* not-cached https://github.com/twbs/bootstrap.git#* bower bootstrap#* resolve https://github.com/twbs/bootstrap.git#* bower bootstrap#* checkout v3.3.6 bower bootstrap#* resolved https://github.com/twbs/bootstrap.git#3.3.6 bower jquery#1.9.1 - 2 not-cached https://github.com/jquery/jquery-dist.git#1.9.1 - 2 bower jquery#1.9.1 - 2 resolve https://github.com/jquery/jquery-dist.git#1.9.1 - 2 bower jquery#1.9.1 - 2 checkout 2.2.4 bower jquery#1.9.1 - 2 resolved https://github.com/jquery/jquery-dist.git#2.2.4 Unable to find a suitable version for jquery, please choose one by typing one of the numbers below: 1) jquery#1.9.1 - 2 which resolved to 2.2.4 and is required by bootstrap#3.3.6 2) jquery#^3.1.0 which resolved to 3.1.0 and is required by yoo Prefix the choice with ! to persist it to bower.json ? Answer 1 bower jquery#1.9.1 - 2 install jquery#2.2.4 bower bootstrap#^3.3.6 install bootstrap#3.3.6 jquery#2.2.4 bower_components/jquery bootstrap#3.3.6 bower_components/bootstrap └── jquery#2.2.4