I have a problem with building a goman yoman project project. I am trying to do a git checkout of a yeoman project and run grunt serve . Below is a script describing the error
Scenario description:
Person1 created the yoman angularjs project using yo angular . grunt serve works fine on Person1 computer. Person1 pushes the code to git, so other team members can work on it.
The problem occurs when Person2 performs a git check ( git clone <URL> ). The grunt serve command in the extracted copy will give the following error:
$ grunt serve grunt-cli: The grunt command line interface. (v0.1.13) Fatal error: Unable to find local grunt. If you're seeing this message, either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide: http://gruntjs.com/getting-started
I tried: npm install grunt
I got the following error:
grunt serve Loading "Gruntfile.js" tasks...ERROR >> Error: Cannot find module 'load-grunt-tasks' Warning: Task "serve" not found. Use --force to continue. Aborted due to warnings.
Tools used:
$ grunt -version grunt-cli v0.1.13 grunt v0.4.4 $ yo -v 1.1.2 suraj@localhost :testing$ npm -version 1.4.4
ls -l in the directory
drwxrwxr-x app -rw-rw-r-- bower.json -rw-rw-r-- Gruntfile.js -rw-rw-r-- karma.conf.js -rw-rw-r-- karma-e2e.conf.js drwxrwxr-x node_modules -rw-rw-r-- package.json drwxrwxr-x test
I need help with the task of creating a project from git checkout so that I can continue development.
source share