joeferner / node-oracle

node.js driver to connect with an oracle database.
MIT License
271 stars 99 forks source link

Failed at the oracle@0.3.9 install script. #270

Closed andrewsheridan closed 8 years ago

andrewsheridan commented 8 years ago

I'm picking up work on a project that hasn't been touched in a year, and when I try to install the node modules, it is not able to install the oracle package. I've taken these steps as outlined in the documentation for the package: I am currently running windows 7.

-Installed Python 2.7, and set the appropriate environment variables: C:\Python27\;C:\Python27\Scripts -Downloaded the Oracle Instant Client (I have tried with 12.1 and 11.2, currently using 12.1) and sdk. -Put SDKs in the root of their respective clients. -Set the appropriate environment variables: In Path: C:\Tools\instantclient_12_1\vc12;C:\Tools\instantclient_12_1;, OCI_INCLUDE_DIR=C:\Tools\instantclient_12_1\sdk\include, OCI_LIB_DIR=C:\Tools\instantclient_12_1\sdk\lib\msvc\vc10, and OCI_VERSION=12. -Visual Studio 2013 is downloaded, along with its C++ Redistributables -Ran npm install oracle --msvs_version=2013.

The errors I get are becoming less and less useful. This is the current output from my npm install.

$ npm install oracle --msvs_version=2010 npm WARN package.json path@0.4.10 path is also the name of a node core module. npm http GET https://registry.npm.org/oracle npm http GET https://registry.npm.org/oracle npm http GET https://registry.npm.org/oracle

oracle@0.3.9 install C:\Projects\data-sharing-portal\node_modules\oracle node-gyp rebuild

C:\Projects\data-sharing-portal\node_modules\oracle>node "C:\Users\sheridanandrew13\AppData\Roaming\nvm\v0.10.26\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild gypnpm ERR! oracle@0.3.9 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the oracle@0.3.9 install script. npm ERR! This is most likely a problem with the oracle 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 their info via: npm ERR! npm owner ls oracle npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Tools\nodejs\node.exe" "C:\Tools\nodejs\node_modules\npm\bin\npm-cli.js" "install" "oracle" "--msvs_version=2010" npm ERR! cwd C:\Projects\data-sharing-portal npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! code ELIFECYCLE