I just tried to test this repo at EC2, I've checked the linux flavor:
$ cat /proc/version
Linux version 4.9.51-10.52.amzn1.x86_64 (mockbuild@gobi-build-64010) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Fri Sep 29 01:16:19 UTC 2017
if I tried to run npm install I got this result:
ec2-user:~/environment/node-or-tools-master $ npm install
> node_or_tools@1.0.5 install /home/ec2-user/environment/node-or-tools-master/node_modules/node_or_tools
> node-pre-gyp install --fallback-to-build
[node_or_tools] Success: "/home/ec2-user/environment/node-or-tools-master/node_modules/node_or_tools/lib/binding/node_or_tools.node" is installed via remote
> node_or_tools_example@1.0.0 install /home/ec2-user/environment/node-or-tools-master
> node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp: Undefined variable module_path 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 (/home/ec2-user/.nvm/versions/node/v6.11.4/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
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:219:12)
gyp ERR! System Linux 4.9.51-10.52.amzn1.x86_64
gyp ERR! command "/home/ec2-user/.nvm/versions/node/v6.11.4/bin/node" "/home/ec2-user/.nvm/versions/node/v6.11.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ec2-user/environment/node-or-tools-master
gyp ERR! node -v v6.11.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN node_or_tools_example@1.0.0 No repository field.
npm WARN node_or_tools_example@1.0.0 No license field.
npm ERR! Linux 4.9.51-10.52.amzn1.x86_64
npm ERR! argv "/home/ec2-user/.nvm/versions/node/v6.11.4/bin/node" "/home/ec2-user/.nvm/versions/node/v6.11.4/bin/npm" "install"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! node_or_tools_example@1.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node_or_tools_example@1.0.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 node_or_tools_example 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 node_or_tools_example
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node_or_tools_example
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/ec2-user/environment/node-or-tools-master/npm-debug.log
ah,, its been awhile.. we decided to work directly on the source code of the OR-TOOLS library using Python, much more flexible and handles more VRP variants
I just tried to test this repo at EC2, I've checked the linux flavor:
if I tried to run
npm install
I got this result:/home/ec2-user/environment/node-or-tools-master/npm-debug.log: