elasticsearch-head使用grunt server启动报错

报错信息如下:

elasticsearch-head使用grunt server启动报错

意思是grunt的插件没有找到,使用淘宝镜像依次安装

npm install grunt-contrib-clean –registry=https://registry.npm.taobao.org

npm install grunt-contrib-concat –registry=https://registry.npm.taobao.org

npm install grunt-contrib-watch –registry=https://registry.npm.taobao.org
npm install grunt-contrib-connect –registry=https://registry.npm.taobao.org
npm install grunt-contrib-copy –registry=https://registry.npm.taobao.org

npm install grunt-contrib-jasmine –registry=https://registry.npm.taobao.org

安装过程如下图:

elasticsearch-head使用grunt server启动报错

elasticsearch-head使用grunt server启动报错

elasticsearch-head使用grunt server启动报错

elasticsearch-head使用grunt server启动报错

elasticsearch-head使用grunt server启动报错

elasticsearch-head使用grunt server启动报错

安装成功后使用grunt server启动elasticsearch head成功