turnbullpress / dockerbook-code

The code and configuration examples from The Docker Book (http://www.dockerbook.com)
927 stars 581 forks source link

6.33 node-gyp rebuild err #59

Open masato-xd opened 5 years ago

masato-xd commented 5 years ago

Step 10/13 : RUN npm install ---> Running in e25094fee94a

hiredis@0.5.0 install /opt/nodeapp/node_modules/hiredis node-gyp rebuild

/bin/sh: 1: node: not found gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:354:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.10.0-957.21.3.el7.x86_64 gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /opt/nodeapp/node_modules/hiredis gyp ERR! node -v v4.2.6 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok docker-dev@0.1.1 /opt/nodeapp +-- connect-redis@3.4.2 | +-- debug@4.1.1 | | -- ms@2.1.2 |-- redis@2.8.0 | +-- double-ended-queue@2.1.0-0 | +-- redis-commands@1.5.0 | -- redis-parser@2.6.0 +-- cookie-parser@1.4.4 | +-- cookie@0.3.1 |-- cookie-signature@1.0.6 +-- express@4.17.1 | +-- accepts@1.3.7 | | +-- mime-types@2.1.24 | | | -- mime-db@1.40.0 | |-- negotiator@0.6.2 | +-- array-flatten@1.1.1 | +-- body-parser@1.19.0 | | +-- bytes@3.1.0 | | +-- debug@2.6.9 | | | -- ms@2.0.0 | | +-- http-errors@1.7.2 | | | +-- inherits@2.0.3 | | |-- toidentifier@1.0.0 | | +-- iconv-lite@0.4.24 | | | -- safer-buffer@2.1.2 | |-- raw-body@2.4.0 | +-- content-disposition@0.5.3 | +-- content-type@1.0.4 | +-- cookie@0.4.0 | +-- debug@2.6.9 | | -- ms@2.0.0 | +-- depd@1.1.2 | +-- encodeurl@1.0.2 | +-- escape-html@1.0.3 | +-- etag@1.8.1 | +-- finalhandler@1.1.2 | | +-- debug@2.6.9 | | |-- ms@2.0.0 | | -- unpipe@1.0.0 | +-- fresh@0.5.2 | +-- merge-descriptors@1.0.1 | +-- methods@1.1.2 | +-- on-finished@2.3.0 | |-- ee-first@1.1.1 | +-- parseurl@1.3.3 | +-- path-to-regexp@0.1.7 | +-- proxy-addr@2.0.5 | | +-- forwarded@0.1.2 | | -- ipaddr.js@1.9.0 | +-- qs@6.7.0 | +-- range-parser@1.2.1 | +-- safe-buffer@5.1.2 | +-- send@0.17.1 | | +-- debug@2.6.9 | | |-- ms@2.0.0 | | +-- destroy@1.0.4 | | +-- mime@1.6.0 | | -- ms@2.1.1 | +-- serve-static@1.14.1 | +-- setprototypeof@1.1.1 | +-- statuses@1.5.0 | +-- type-is@1.6.18 | |-- media-typer@0.3.0 | +-- utils-merge@1.0.1 | -- vary@1.1.2 +-- express-session@1.15.6 | +-- crc@3.4.4 | +-- debug@2.6.9 | |-- ms@2.0.0 | +-- on-headers@1.0.2 | -- uid-safe@2.1.5 |-- random-bytes@1.0.0 +-- morgan@1.9.1 | +-- basic-auth@2.0.1 | -- debug@2.6.9 |-- ms@2.0.0 `-- redis@0.10.3

npm WARN docker-dev@0.1.1 No repository field. npm WARN docker-dev@0.1.1 No license field. npm ERR! Linux 3.10.0-957.21.3.el7.x86_64 npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE

npm ERR! hiredis@0.5.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hiredis@0.5.0 install script 'node-gyp rebuild'. 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 hiredis package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs hiredis npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls hiredis npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /opt/nodeapp/npm-debug.log The command '/bin/sh -c npm install' returned a non-zero code: 1