3

Hi looking for some help. I have installed

  1. node.js
  2. yeoman 3.angular
  3. npm install -g generator-webapp

when I go to test it on server using grunt serve, I get this response

-bash: grunt: command not found

don't know what i'm doing wrong

Any help greatly appreciated

3
  • Did you install grunt?
    – Clive
    Oct 27, 2014 at 20:39
  • yeah clive have done.
    – windies17
    Oct 27, 2014 at 20:42
  • hm? did You install npm install -g grunt-cli ?
    – Jarema
    Oct 27, 2014 at 20:43

3 Answers 3

5

You need to install the command line utility for Grunt.

npm install -g grunt-cli

You might need to run it with sudo

1

Installing npm install grunt is not enough. It just installs local grunt. You also need grunt-cli installed to use grunt command. To do that, input:

npm install -g grunt-cli
4
  • Thanks Clive and Jarema d'oh just realised my mistake. working now however it is throwing an error" Cannot find where you keep your Bower packages."
    – windies17
    Oct 27, 2014 at 20:49
  • and this: github.com/DaftMonk/generator-angular-fullstack/issues/230 Did You do npm install and bower install in that app folder?
    – Jarema
    Oct 27, 2014 at 20:53
  • Yeah Jarema done both. Bower JSON is in my directory Gruntfile.js app bower.json node_modules package.json test
    – windies17
    Oct 27, 2014 at 21:00
  • I have no clue then. check links. otherwise - ask new question, as this is a different thing :).
    – Jarema
    Oct 27, 2014 at 21:01
0

Sorted Thanks Folks for all the help

Solution

1) npm install -g bower 2) in the file app I was using install bower

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.