找不到模块' destroy'

时间:2015-08-16 23:36:23

标签: angularjs node.js express npm yo

我正在使用" yo angular-fullstac"并且在运行" grunt server"时遇到错误或者" grunt serve --force"命令。知道为什么会这样吗?如何解决?

Running "autoprefixer:dist" (autoprefixer) task
File .tmp/app/app.css created.
File .tmp/app/app.css.map created (source map).

Running "express:dev" (express) task
Starting background Express server
Debugger listening on port 5858
module.js:338
throw err;
      ^
Error: Cannot find module 'destroy'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (D:\Projects\NEWMM\node_modules\express\node_modules\s
end\index.js:8:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

Running "wait" task
>> Waiting for server reload...
Done waiting!

Running "open:server" (open) task

Running "watch" task
Waiting...

0 个答案:

没有答案