我正在尝试yeomen脚手架工具。唯一的问题是,我遇到了一些问题和咕噜声。我正在尝试使用webapp生成器组装一个简单的网站。脚手架的应用程序和使用grunt serve
完美的作品。Ye门webapp生成器在窗口上咕噜失败
Running "useminPrepare:html" (useminPrepare) task
Warning: An error occurred while processing a template (Unexpected token)). Use --force to continue.
使用武力并不能解决问题:使用grunt build
当它失败,此消息只失败。我attemted通过删除以下行html: '<%= config.app %>/index.html'
在
useminPrepare: {
options: {
dest: '<%= config.dist %>'
},
html: '<%= config.app %>/index.html'
},
它跳过当前的问题没有错误绕过在gruntfile操作,但接着又出错
Warning: Running "imagemin:dist" (imagemin) task
Warning: An error occurred while processing a template (Unexpected token)). Use --force to continue.
我已经脚手架周围的12倍同样的发电机没有任何改变。我也尝试使用另一台具有相同配置的计算机,但没有任何更改。
Git,Node,npm,grunt,bower,ruby,sass和yo都是最新的。它从来没有声明任何地方(除了在错误)得到红宝石和sass,所以我假设我也错过了其他一些重要的技术。
我在Windows 10上使用powershell。试过使用git shell,但仍然得到相同的错误。真的喜欢什么yeoman必须提供。欣赏任何建议/解决方案。
它解决了这个问题!感谢帮助,一直困住了好几天。真的好奇出了什么问题,你能解释一下吗?发电机有问题吗? –
生成该脚本的yeoman生成器已损坏。 https://github.com/yeoman/generator-webapp/commit/380823e82377cc3302e708eeedd2af1b973287c8 – JohnWE
我认为它仍然是...至少当你运行哟webapp ...感谢这篇文章! – user655489