> elasticsearch-head@0.0.0 start /usr/local/kencery/elasticsearch-head > grunt server
grunt-cli: The grunt command line interface (v1.2.0)
Fatal error: Unable to find local grunt.
If you're seeing this message, grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started
npm ERR! Linux 4.4.0-62-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! elasticsearch-head@0.0.0 start: `grunt server` npm ERR! Exit status 99 npm ERR! npm ERR! Failed at the elasticsearch-head@0.0.0 start script 'grunt server'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the elasticsearch-head package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! grunt server npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs elasticsearch-head npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls elasticsearch-head npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /usr/local/kencery/elasticsearch-head/npm-debug.log
提示大概是版本不是最新的问题,所以就抱着试一试的心态去升级npm以及node
1 2 3 4
npm cache clean -f npm install -g n n stable npm install npm@latest -g
elasticsearch@ubuntu:/usr/local/kencery/elasticsearch-head$ grunt server >> Local Npm module "grunt-contrib-clean" not found. Is it installed? >> Local Npm module "grunt-contrib-concat" not found. Is it installed? >> Local Npm module "grunt-contrib-watch" not found. Is it installed? >> Local Npm module "grunt-contrib-connect" not found. Is it installed? >> Local Npm module "grunt-contrib-copy" not found. Is it installed? >> Local Npm module "grunt-contrib-jasmine" not found. Is it installed? Warning: Task "connect:server" not found. Use --force to continue.
elasticsearch@ubuntu:/usr/local/kencery/elasticsearch-head$ grunt server (node:1527) ExperimentalWarning: The http2 module is an experimental API. Running "connect:server" (connect) task Waiting forever... Started connect web server on http://localhost:9100