2017-08-17 6 views
0

Je reçois l'erreur suivante quand je lance la commande grunt après avoir généré l'application en utilisant un générateur Yeoman:Yeoman généré application se bloque sur l'exécution commande grognement

Loading "grunt-karma.js" tasks...ERROR 
>> TypeError: Cannot read property 'prototype' of undefined 
>> Local Npm module "grunt-node-inspector" not found. Is it installed? 

Running "env:dev" (env) task 

Running "sass:dist" (sass) task 

Running "less:dist" (less) task 

Running "jshint:all" (jshint) task 
>> 86 files lint free. 

Running "csslint:all" (csslint) task 
>> 2 files lint free. 

Running "mkdir:upload" task 

Running "copy:localConfig" (copy) task 
Copied 1 file 

Running "concurrent:default" (concurrent) task 
Loading "grunt-karma.js" tasks...ERROR 
>> TypeError: Cannot read property 'prototype' of undefined 
Loading "grunt-karma.js" tasks...ERROR 
>> TypeError: Cannot read property 'prototype' of undefined 
>> Local Npm module "grunt-node-inspector" not found. Is it installed? 
>> Local Npm module "grunt-node-inspector" not found. Is it installed? 

Running "nodemon:dev" (nodemon) task 

Running "watch" task 
Waiting... 
[nodemon] 1.11.0 
[nodemon] to restart at any time, enter `rs` 
[nodemon] watching: server.js config/**/*.js     
modules/*/server/**/*.js 
[nodemon] starting `node --debug server.js` 
(node:16253) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead. 
[nodemon] app crashed - waiting for file changes before starting... 

Je trouve une question similaire (Yeoman grunt could not connect to MongoDB) mais je ne capable de trouver la solution à mon problème là-bas.

Répondre

0

Est-ce une ancienne version de MEAN.js? Je crois grunt a été remplacé par gulp et aussi un problème concernant node-inspector a été fixé par ce pull request.

Vous devez vérifier quelle version vous utilisez et apporter les modifications nécessaires.