在grunt的中文网站http://www.gruntjs.net上,对安装grunt插件模版是这么介绍的。
- 通过
npm install -g grunt-init
命令安装 grunt-init 。 - 通过
git clone git://github.com/gruntjs/grunt-init-gruntplugin.git ~/.grunt-init/gruntplugin
命令安装grunt插件模版
- Install grunt-init with
npm install -g grunt-init
- Install the gruntplugin template with
git clone git://github.com/gruntjs/grunt-init-gruntplugin.git ~/.grunt-init/gruntplugin
(%USERPROFILE%\.grunt-init\gruntplugin
on Windows).
在windows下安装,grunt插件模版的安装位置与linux和mac是不一样的。
windows下,%USERPROFILE% 这个,又该是什么呢?
实际上,我在网上查了下,应该是这个 C:\Users\用户名