我按照网络上提供的步骤进行操作 http://yeoman.io/ .完成所有步骤后,我面临此错误消息
`$咕噜声
加载“Gruntfile.js”任务...错误
Error: Cannot find module 'connect-livereload' Warning: Task "default" not found. Use --force to continue`
在我的 package.json 中,我有我所有的依赖包
"connect-livereload": "~0.2.0", "grunt-google-cdn": "~0.2.0", "grunt-ngmin": "~0.0.2", "grunt-contrib-livereload": "~0.1.2"
最佳答案
我有同样的问题。以这种方式修复它:
npm install --save-dev connect-livereload
npm install
可能“npm install”就足够了。
关于grunt-contrib-watch - 错误 : Cannot find module 'connect-livereload' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18044828/