全局安装了gennerator-gruntplugin 然后运行,输入名字的时候一直报错。
目测你的generator-gruntplugin版本有问题,卸载掉npm remove -g generator-gruntplugin,重新安装稳定版的npm install -g generator-gruntplugin@0.0.7
参考http://gruntjs.com/creating-plugins 这个创建插件
参考http://gruntjs.com/project-scaffolding 这个创建模板