若是还没有安装grunt-init,则首先使用以下命令安装它 npm
npm install -g grunt-init grunt
打开项目目录执行 this
npm init spa
根据提示依次填写版本等信息,填写完毕,提示Is this ok? (yes)时,回车,则文件建立完毕。 ci