Construye un proyecto yeoman desde git checkout
Estoy enfrentando un problema en la construcción del proyecto yeoman pago de git. Estoy tratando de sacar git checkout del proyecto yeoman y ejecutargruñir servir. A continuación se muestra el escenario seguido de la descripción del error.
Descripción del escenario:
Persona1 creó el proyecto yeoman angularjs usandoyo angular. gruñir servir está funcionando bien enPersona1La computadora dePersona1 empuja el código a git para que otros miembros del equipo puedan trabajar en él.
El problema ocurre cuandoPersona2 toma un pago del git (git clone <URL>) losgruñir servir El comando en la copia extraída dará el siguiente 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
Lo intenté :npm install grunt
Tuve el siguiente 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.
Herramientas utilizadas :
$ 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 en el directorio
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
Necesito ayuda para lograr la tarea de construir el proyecto desde git checkout para poder continuar con el desarrollo.