Monday 15 June 2015

node.js - Bower, Grunt on Ubuntu 12.04 - command not found -



node.js - Bower, Grunt on Ubuntu 12.04 - command not found -

i've installed bower , grunt on machine non of works. :command not found both.

i've placed paths bower , grunt in .bash_profile file, like: export path="/home/user/.node/lib/node_modules/grunt-cli/bin:$path" export path="/home/user/.node/lib/node_modules/bower/bin:$path"

it feels packages installed correctly can't found.

npm , node located in home/user/.node , home/user/.npm directories right place it?

which bower/grunt outputs nothing

just had remind myself of one, set environment on new machine.

as per http://gruntjs.com/getting-started, there 2 steps required installation , utilize of grunt.js task runner on given project:

you should globally install only 'grunt-cli', grunt command line interface. set grunt command on scheme path. achieved running npm install -g grunt-cli, may require root privileges depending on setup.

you should locally install grunt task runner proper. achieved running npm install, after adding desired version of grunt.js project's package.json file. install specific version of grunt.js described in project's package.json, under devdependencies section. file used nodejs describe project development , deployment dependencies, among other stuff.

node.js gruntjs npm bower bower-install

No comments:

Post a Comment