Closed pnsrinivasreddy closed 6 years ago
Hi, you are getting this error because of the node.js version, currently node-ibm_db does not support node.js version 10 on Mac OS, please use node < 10.X. Thanks. Our team is working on this issue, very soon we will release the compatible version with node 10.X
Thank so much. It helped me.
Hello. I am also getting this issue. However, node -v shows: v8.11.2
Hi @kbosshardt , Can you please attach the error log, also, mention the platform name.
Hello. I am also getting this issue. However, node -v shows: v8.11.2
Me too with v8.9.4
Is this on Mac? Would you be able to paste the output and error log?
Yes this is on a Mac.
ibm_db@2.4.1 install /Users/kbossha@us.ibm.com/Desktop/SkillsProject/MVP2/sc_skillsproject/node_modules/ibm_db node installer/driverInstall.js
Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz...
100.00% | 20080158 bytes downloaded out of 20080158 bytes.
You are downloading a package which includes the Node.js module for IBM DB2/Informix. The module is licensed under the Apache License 2.0. The package also includes IBM ODBC and CLI Driver from IBM, which is automatically downloaded as the node module is installed on your system/device. The license agreement to the IBM ODBC and CLI Driver is available in undefined Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your acceptance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your device.
Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...
{ Error: Command failed: node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME" xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 16, in gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--IS_DOWNLOADED=true" "--IBM_DB_HOME=/Users/../Desktop/SkillsProject/MVP2/sc_skillsproject/node_modules/ibm_db/installer/clidriver"
gyp ERR! cwd /Users/../Desktop/SkillsProject/MVP2/sc_skillsproject/node_modules/ibm_db
gyp ERR! node -v v8.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:557:12)
killed: false,
code: 1,
signal: null,
cmd: 'node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME"' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db@2.4.1 install: node installer/driverInstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ibm_db@2.4.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/../.npm/_logs/2018-10-10T14_47_15_765Z-debug.log
Do you want the debug log?
mine is same error as @kbosshardt with the node version difference
@kbosshardt , I think this error is coming due to this - xcode-select: error: tool 'xcodebuild' requires Xcode.
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
I tried again after following instructions at https://github.com/nodejs/node-gyp/issues/569 with same error happening with npm install
@kbosshardt , @thomblweed, I think you need to install "Command line tools" (that is xcode - if you haven't already).
Following are few links which will help you to install it: https://github.com/nodejs/node-gyp/issues/569 https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error
I am sorry, but this issue is not related to node-ibm_db. Still, let us know the steps how you resolved this error, it can help others.
OK thanks will continue investigating other options as neither of those work for me. Many thanks for your help.
Interesting. I have installed ibm_db before without having Xcode.
@kbosshardt , Well, that's not a node-ibm_db requirement, it's node-gyp's. Check if it's working after downgrading node-gyp version.
Installing Xcode seemed to do the trick.
Oh I see. They must have updated their dependencies recently.
Hi, I am getting the below error in mac while doing "npm install ibm_db". Absolutely no clue as I am a UI developer.
Nagas-MacBook-Pro:lib nagasrinivasa$ npm install ibm_db
Downloading DB2 ODBC CLI Driver from https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz...
100.00% | 20080158 bytes downloaded out of 20080158 bytes.
You are downloading a package which includes the Node.js module for IBM DB2/Informix. The module is licensed under the Apache License 2.0. The package also includes IBM ODBC and CLI Driver from IBM, which is automatically downloaded as the node module is installed on your system/device. The license agreement to the IBM ODBC and CLI Driver is available in undefined Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your acceptance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your device.
Downloading and extraction of DB2 ODBC CLI Driver completed successfully ...
CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
{ Error: Command failed: node-gyp configure build --IS_DOWNLOADED=true --IBM_DB_HOME="$IBM_DB_HOME" xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
../src/odbc.cpp:210:15: warning: 'Call' is deprecated [-Wdeprecated-declarations] data->cb->Call(1, info); ^ ../node_modules/nan/nan.h:1617:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local
^
../node_modules/nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
define NAN_DEPRECATED attribute((deprecated))
../src/odbc.cpp:217:80: error: no matching member function for call to 'NewInstance' Local