若是還沒有安裝grunt-init,則首先使用以下命令安裝它 npm
npm install -g grunt-init grunt
打開項目目錄執行 this
npm init spa
根據提示依次填寫版本等信息,填寫完畢,提示Is this ok? (yes)時,回車,則文件建立完畢。 ci