Closed v3nt closed 8 years ago
OK - so it seems its now installed but i can't run it from terminal using just 'grunt'. I just 'npm install' in my projects and it ran grunt dev after and worked.
But when i try 'grunt dev' i still get '-bash: grunt: command not found'
this is what i got when i ran npm install -
macbook-ret:wonkhe-roots-master jynk$ nam install
> fsevents@1.0.9 install /Users/jynk/Projects/630_Wonkhe/web/wonkheweb/wp-content/themes/wonkhe-roots-master/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
[fsevents] Success: "/Users/jynk/Projects/630_Wonkhe/web/wonkheweb/wp-content/themes/wonkhe-roots-master/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> roots@7.0.1 postinstall /Users/jynk/Projects/630_Wonkhe/web/wonkheweb/wp-content/themes/wonkhe-roots-master
> node node_modules/bower/bin/bower install && grunt dev
Running "jshint:all" (jshint) task
>> 3 files lint free.
But when i try 'grunt dev' i still get '-bash: grunt: command not found'
Because grunt
is only installed locally. If you want to use the grunt
command from anywhere on your system, run: npm i -g grunt-cli
i have about 20 times! Tried with sudo too...
Can you provide the output ?
on a different machine but will try agin next week...
sounds like an issue with your script or npm.
no it wasn't — it wasn't linked after install for some reason...
have re-installed node / npm but now can't get grunt up and running.
node --version v4.4.4
npm --version 2.15.1
grunt --version -bash: grunt: command not found