npm和bower

npm用于管理node.js 的backend依赖模块;这些模块以node的require来调用

bower用于管理frontend的js依赖模块,这些模块用<script src="xxx"></script>来调用

bower install --allow-root

bower install loadash --save

bower install loadash#2.2.2

bower search loadash

npm install bower -g

np init

npm install express --save

npm install grunt-cli --save-dev

npm list

npm -g list

npm info backbone

posted @ 2015-05-06 14:42  世有因果知因求果  阅读(286)  评论(0编辑  收藏  举报