咕噜服务的问题

我有项目,但我不能运行他。 我使用WebStorm IDE,进入grunt服务器后,发现下面的错误:

grunt serve Loading "connect.js" tasks...ERROR >> SyntaxError: C:\Users\TT\Documents\ES\frontend\node_modules\grunt-contrib-connect\node_modules\connect\node_modules\type-is\node_modules\mime-types\node_modules\mime-db\db.json: Unexpect ed end of input Loading "cssmin.js" tasks...ERROR >> Error: Cannot find module './source-map/source-map-generator' Loading "jshint.js" tasks...ERROR >> Error: Cannot find module 'jshint/src/cli' Loading "uglify.js" tasks...ERROR >> Error: Cannot find module 'pako/lib/zlib/messages' Loading "cdnify.js" tasks...ERROR >> SyntaxError: C:\Users\TT\Documents\ES\frontend\node_modules\grunt-google-cdn\node_modules\google-cdn\node_modules\cdnjs-cdn-data\external\cdnjs.json: Unexpected end of input Loading "inline_angular_templates.js" tasks...ERROR >> Error: Cannot find module 'domutils' Running "serve" task Warning: Task "connect:livereload" not found. Use --force to continue. Aborted due to warnings. Execution Time (2015-05-10 09:03:36 UTC) loading tasks 18ms █████████████████████████████████████████████████████████████████████████████████████████████████████████ 56% serve 11ms ████████████████████████████████████████████████████████████████ 34% Total 32ms 

你可以帮我吗? 如何解决这个问题,以及为了这个项目需要安装什么?

我find了解决scheme。

这里是步骤:

  1. 删除nodejs和所有npm的。
  2. 安装节点
  3. npm安装
  4. npm install -g bower
  5. 凉亭安装
  6. 咕噜服务

成功

嗯…运行:

 $ grunt -v 

这会给你丢失(损坏)的node_modules。 有时候事情会被破坏等等。

我用grunt-google-cdn遇到了同样的问题,并重新安装了它。 用$ npm install grunt-google-cdn --save ,一切正常后:)

重新安装一切通常不是必需的。