elasticsearch-head icon indicating copy to clipboard operation
elasticsearch-head copied to clipboard

npm install err

Open yangtao22 opened this issue 7 years ago • 7 comments

7004 verbose pkgid [email protected] 7005 verbose cwd E:\elasticsearch-head-master 7006 error Windows_NT 10.0.10240 7007 error argv "D:\nodejs\node.exe" "D:\nodejs\node_modules\npm\bin\npm-cli.js" "install" 7008 error node v6.10.2 7009 error npm v3.10.10 7010 error code ELIFECYCLE 7011 error [email protected] install: node install.js 7011 error Exit status 1 7012 error Failed at the [email protected] install script 'node install.js'. 7012 error Make sure you have the latest version of node.js and npm installed. 7012 error If you do, this is most likely a problem with the phantomjs-prebuilt package, 7012 error not with npm itself. 7012 error Tell the author that this fails on your system: 7012 error node install.js 7012 error You can get information on how to open an issue for this project with: 7012 error npm bugs phantomjs-prebuilt 7012 error Or if that isn't available, you can get their info via: 7012 error npm owner ls phantomjs-prebuilt 7012 error There is likely additional logging output above.

yangtao22 avatar Apr 18 '17 10:04 yangtao22

you need exit git bash use the window cmd to do it "npm install" or up to the last node

zqc0512 avatar Apr 21 '17 02:04 zqc0512

[email protected] install /root/elasticsearch-head/node_modules/grunt-contrib-jasmine/node_modules/grunt-lib-phantomjs/node_modules/phantomjs-prebuilt node install.js

module.js:327 throw err;

ubuntu 14.04 nodejs 4.8.2

bmcgair avatar Apr 24 '17 18:04 bmcgair

Same issue here:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] npm WARN [email protected] license should be a valid SPDX license expression npm ERR! Linux 4.8.0-34-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! [email protected] install: `node install.js````

npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] install script 'node install.js'. 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 phantomjs-prebuilt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs phantomjs-prebuilt npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls phantomjs-prebuilt npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/nicolas/dev/env/ina/elasticsearch-head/npm-debug.log

nicosensei avatar Apr 27 '17 10:04 nicosensei

update you node and try again

zqc0512 avatar Apr 28 '17 00:04 zqc0512

Have Elasticsearch 5.4.1 and trying to install as standalone version. Getting the same npm error as above: Please Help... Thanks! JK

``root@es3:/home/esearch/elasticsearch-head# npm install npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">= 4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">= 0.12"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN optional dep failed, continuing [email protected] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})

[email protected] install /home/esearch/elasticsearch-head/node_modules/grunt-contrib-jasmine/node_modules/grunt-lib-phantomjs/node_modules/phantomjs-preb uilt node install.js

sh: 1: node: not found npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! [email protected] install: node install.js npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is most likely a problem with the phantomjs-prebuilt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get their info via: npm ERR! npm owner ls phantomjs-prebuilt npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.16.0-4-amd64 npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/esearch/elasticsearch-head npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/esearch/elasticsearch-head/npm-debug.log npm ERR! not ok code 0

JimKeating2 avatar Jun 15 '17 18:06 JimKeating2

I have meet same issue. And my node/npm version is npm ERR! node v6.11.0 npm ERR! npm v3.10.10 I found an answer on https://stackoverflow.com/questions/18218134/warning-phantomjs-not-found#answer-18224544 I guess the question is elasticsearch-head need dependency to 'phantomjs'. when -head installer fouder thr env no have phantomjs. it'll install phantomjs by itself. and install error. So. we could install phantomjs by ourself before install -head. my steps:

  1. go uninstall old phantomjs, ignore is exist; npm uninstall phantomjs
  2. reinstall phantomjs use -g npm install phantomjs -g
  3. reinstall elasticsearch-head in your elasticsearch-head folder D:\pathto\your elasticsearch-head>npm install

over

by the way, my English is so badddddddd~

yangpengfei369 avatar Jun 19 '17 06:06 yangpengfei369

me i have This failure might be due to the use of legacy binary "node" but I lunch before npm install phantomjs -g

fyher avatar Nov 03 '17 12:11 fyher