Tuesday 23 May 2017

node oracle on windows 7 64 bit

whenever i do an npm install oracledb

C:\windows\system32\node_modules\oracledb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\nod
\bin\node-gyp.js" rebuild )  else (node "" rebuild )
 gyp WARN install got an error, rolling back install
 gyp ERR! configure error
 gyp ERR! stack Error: tunneling socket could not be established,      statusCode=407
 gyp ERR! stack     at ClientRequest.onConnect (C:\Program Files\nodejs\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:165:19)
 gyp ERR! stack     at ClientRequest.g (events.js:292:16)
 gyp ERR! stack     at emitThree (events.js:116:13)
 gyp ERR! stack     at ClientRequest.emit (events.js:194:7)
 gyp ERR! stack     at Socket.socketOnData (_http_client.js:394:11)
 gyp ERR! stack     at emitOne (events.js:96:13)
 gyp ERR! stack     at Socket.emit (events.js:188:7)
 gyp ERR! stack     at readableAddChunk (_stream_readable.js:176:18)
 gyp ERR! stack     at Socket.Readable.push (_stream_readable.js:134:10)
 gyp ERR! stack     at TCP.onread (net.js:547:20)
 gyp ERR! System Windows_NT 6.1.7601
 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
 gyp ERR! cwd C:\windows\system32\node_modules\oracledb
 gyp ERR! node -v v6.10.3
 gyp ERR! node-gyp -v v3.4.0
 gyp ERR! not ok
 npm WARN enoent ENOENT: no such file or directory, open 'C:\windows\system32\package.json'
 npm WARN system32 No description
 npm WARN system32 No repository field.
 npm WARN system32 No README data
 npm WARN system32 No license field.
 npm ERR! Windows_NT 6.1.7601
 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "oracledb"
 npm ERR! node v6.10.3
 npm ERR! npm  v3.10.10
 npm ERR! code ELIFECYCLE

 npm ERR! oracledb@1.13.1 install: `node-gyp rebuild`
 npm ERR! Exit status 1
 npm ERR!
 npm ERR! Failed at the oracledb@1.13.1 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 oracledb 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 oracledb
 npm ERR! Or if that isn't available, you can get their info via:
 npm ERR!     npm owner ls oracledb
 npm ERR! There is likely additional logging output above.

 npm ERR! Please include the following file with any support request:
 npm ERR!     C:\windows\system32\npm-debug.log

I see that there is a problem with node-gyp and rebuild that and I run into the same error.

I installed oracle instant client I installed python 2.7 I installed Visual studi0, C++ compiler libraries I did set the oracle env variables

I am not sure what I am missing. There are lots of posts about this but none of them seem to resolve this issue.

Here are some more details. node -v v6.10.3 node-gyp -v v3.6.1 npm -v 3.10.10 Python 2.7.10

Socket tunneling initially looks like its a proxy issue but its not. I am able to download other npm packages with no problem. So setting the proxies or unsetting the proxies is ruled out.



via user1707141

No comments:

Post a Comment