我有计划,但我不能管理他。我使用了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你能帮帮我吗?如何修复它,需要安装什么才能赢得这个项目?
发布于 2015-05-10 16:28:39
我找到了解决办法。
以下是几个步骤:
成功
发布于 2016-05-23 09:18:58
嗯..。跑:
$ grunt -v这将给出丢失(损坏)的node_modules。有时候事情会变坏之类的。
我在grunt-google-cdn中遇到了同样的问题,并重新安装了它。在$ npm install grunt-google-cdn --save之后,一切都很顺利:)
通常不需要重新安装所有的东西。
https://stackoverflow.com/questions/30149632
复制相似问题