node.js - Grunt installation in mac os -
i want create angular js app using bootstrap, installed node.js pkg file in mac. afterwards installed yeoman ($sudo npm install --global yo
). documentation says if install yo grunt , bower automatically installed. in case grunt , bower not beingness installed.
so decided install externally. used next commands:
$sudo npm install -g bower
=> works , giving me files , packages.
$ sudo npm install -g grunt
=> works not giving me files , packages
grunt installed on path of usr/local/lib/node_modules/grunt
grunt folder contains files
constributing.md licenses-mit readme aaveyor.yml internal-tasks lib node_modules package.json
which files missing?
if run command $ grunt --version
got next error
-bash: /grunt: no such file or directory
how resolve this?
you have run:
$ npm install -g grunt-cli
the global binary command-line tool grunt-cli
, not grunt
. it's little bit confusing in beginning, grunt-cli
provides global binary callable grunt
.
so, in end:
installgrunt
locally in application. install grunt-cli
globally. then, can run grunt
anywhere expected :-)
node.js angularjs twitter-bootstrap gruntjs yeoman
No comments:
Post a Comment