Skip to content

Instantly share code, notes, and snippets.

@jariz
Created August 23, 2017 11:48
Show Gist options
  • Save jariz/449ceecf883a434ef7bd8a94644769db to your computer and use it in GitHub Desktop.
Save jariz/449ceecf883a434ef7bd8a94644769db to your computer and use it in GitHub Desktop.
docker run --rm -v "$PWD/build":/usr/src/app -w /usr/src/app node:6 npm install node_or_tools --build-from-source
npm info it worked if it ends with ok
npm info using npm@3.10.10
npm info using node@v6.11.2
npm info attempt registry request try #1 at 11:39:36 AM
npm http request GET https://registry.npmjs.org/node_or_tools
npm http 200 https://registry.npmjs.org/node_or_tools
npm info addNameTag [ 'node_or_tools', 'latest' ]
npm info retry fetch attempt 1 at 11:39:37 AM
npm info attempt registry request try #1 at 11:39:37 AM
npm http fetch GET https://registry.npmjs.org/node_or_tools/-/node_or_tools-1.0.4.tgz
npm http fetch 200 https://registry.npmjs.org/node_or_tools/-/node_or_tools-1.0.4.tgz
npm info attempt registry request try #1 at 11:39:45 AM
npm http request GET https://registry.npmjs.org/nan
npm http 200 https://registry.npmjs.org/nan
npm info retry fetch attempt 1 at 11:39:46 AM
npm info attempt registry request try #1 at 11:39:46 AM
npm http fetch GET https://registry.npmjs.org/nan/-/nan-2.6.2.tgz
npm http fetch 200 https://registry.npmjs.org/nan/-/nan-2.6.2.tgz
npm info lifecycle node_or_tools@1.0.4~preinstall: node_or_tools@1.0.4
npm info lifecycle node_or_tools@1.0.4~preuninstall: node_or_tools@1.0.4
npm info lifecycle node_or_tools@1.0.4~uninstall: node_or_tools@1.0.4
npm info lifecycle node_or_tools@1.0.4~postuninstall: node_or_tools@1.0.4
npm info linkStuff node_or_tools@1.0.4
npm info lifecycle node_or_tools@1.0.4~install: node_or_tools@1.0.4
> node_or_tools@1.0.4 install /usr/src/app/node_modules/node_or_tools
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.36
node-pre-gyp info using node@6.11.2 | linux | x64
node-pre-gyp info build requesting source compile
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.11.2 | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.11.2 | linux | x64
gyp http GET https://nodejs.org/download/release/v6.11.2/node-v6.11.2-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v6.11.2/node-v6.11.2-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v6.11.2/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v6.11.2/SHASUMS256.txt
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/usr/src/app/node_modules/node_or_tools/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/src/app/node_modules/node_or_tools/common.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/6.11.2/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/6.11.2',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/usr/src/app/node_modules/node_or_tools',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.11.2 | linux | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/usr/src/app/node_modules/node_or_tools/build'
ACTION binding_gyp_action_before_build_target_install_deps mason_packages
Downloading Mason @ca9b4cb
* Downloading binary package linux-x86_64/protobuf/3.0.0.tar.gz...
* Installed binary package at /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/protobuf/3.0.0
* Linking /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/protobuf/3.0.0
* Links will be inside /usr/src/app/node_modules/node_or_tools/mason_packages/.link/
* Using bash fallback for symlinking (install lndir for faster symlinking)
* Done linking /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/protobuf/3.0.0
* Downloading binary package headers/sparsehash/2.0.2.tar.gz...
* Installed binary package at /usr/src/app/node_modules/node_or_tools/mason_packages/headers/sparsehash/2.0.2
* Linking /usr/src/app/node_modules/node_or_tools/mason_packages/headers/sparsehash/2.0.2
* Links will be inside /usr/src/app/node_modules/node_or_tools/mason_packages/.link/
* Using bash fallback for symlinking (install lndir for faster symlinking)
* Done linking /usr/src/app/node_modules/node_or_tools/mason_packages/headers/sparsehash/2.0.2
* Downloading binary package linux-x86_64/gflags/2.1.2.tar.gz...
* Installed binary package at /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/gflags/2.1.2
* Linking /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/gflags/2.1.2
* Links will be inside /usr/src/app/node_modules/node_or_tools/mason_packages/.link/
* Using bash fallback for symlinking (install lndir for faster symlinking)
* Done linking /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/gflags/2.1.2
* Downloading binary package linux-x86_64/or-tools/6.0.tar.gz...
* Installed binary package at /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/or-tools/6.0
* Linking /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/or-tools/6.0
* Links will be inside /usr/src/app/node_modules/node_or_tools/mason_packages/.link/
* Using bash fallback for symlinking (install lndir for faster symlinking)
* Done linking /usr/src/app/node_modules/node_or_tools/mason_packages/linux-x86_64/or-tools/6.0
TOUCH Release/obj.target/action_before_build.stamp
SOLINK_MODULE(target) /usr/src/app/node_modules/node_or_tools/lib/binding/node_or_tools.node
g++: error: Release/obj.target/node_or_tools/src/main.o: No such file or directory
g++: error: Release/obj.target/node_or_tools/src/tsp.o: No such file or directory
g++: error: Release/obj.target/node_or_tools/src/vrp.o: No such file or directory
make: *** [/usr/src/app/node_modules/node_or_tools/lib/binding/node_or_tools.node] Error 1
node_or_tools.target.mk:156: recipe for target '/usr/src/app/node_modules/node_or_tools/lib/binding/node_or_tools.node' failed
make: Leaving directory '/usr/src/app/node_modules/node_or_tools/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.9.41-moby
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/src/app/node_modules/node_or_tools/lib/binding/node_or_tools.node" "--module_name=node_or_tools" "--module_path=/usr/src/app/node_modules/node_or_tools/lib/binding"
gyp ERR! cwd /usr/src/app/node_modules/node_or_tools
gyp ERR! node -v v6.11.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/src/app/node_modules/node_or_tools/lib/binding/node_or_tools.node --module_name=node_or_tools --module_path=/usr/src/app/node_modules/node_or_tools/lib/binding' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/src/app/node_modules/node_or_tools/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:891:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.9.41-moby
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/src/app/node_modules/node_or_tools/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/src/app/node_modules/node_or_tools
node-pre-gyp ERR! node -v v6.11.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/src/app/node_modules/node_or_tools/lib/binding/node_or_tools.node --module_name=node_or_tools --module_path=/usr/src/app/node_modules/node_or_tools/lib/binding' (1)
npm info lifecycle node_or_tools@1.0.4~install: Failed to exec install script
npm WARN enoent ENOENT: no such file or directory, open '/usr/src/app/package.json'
npm WARN app No description
npm WARN app No repository field.
npm WARN app No README data
npm WARN app No license field.
npm ERR! Linux 4.9.41-moby
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node_or_tools" "--build-from-source"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! node_or_tools@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node_or_tools@1.0.4 install script 'node-pre-gyp install --fallback-to-build'.
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 node_or_tools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node_or_tools
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node_or_tools
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment