Контекст
Я пытаюсь установить модуль node-oracledb, запустив npm install oracledb для моего проекта (за корпоративным брандмауэром).У меня установлены правильные прокси!(y)
Но он продолжает выдавать следующую ошибку:
Пряжа
λ yarn add oracledb
yarn add v1.7.0
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error C:\Users\<username>\Documents\<path>\test\test-oracle\node_modules\oracledb: Command failed.
Exit code: 87
Command: node package/oracledbinstall.js
Arguments:
Directory: C:\Users\<username>\Documents\<path>\test\test-oracle\node_modules\oracledb
Output:
oracledb Beginning installation
oracledb Verifying installation
oracledb Continuing installation
oracledb ERR! NJS-054: Binary build/Release/oracledb.node was not installed.
oracledb ERR! Pre-built binary packages are not available for this version of Node.js (NODE_MODULE_VERSION="59")
oracledb ERR! Failed to install binary package oracledb-v2.3.0-node-v59-win32-x64.gz
oracledb ERR! connect ETIMEDOUT 192.30.255.113:443
oracledb ERR! For help see https://oracle.github.io/node-oracledb/INSTALL.html#troubleshooting
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
npm
λ npm install oracledb
> oracledb@2.3.0 install C:\Users\<username>\Documents\<path>\test\test-oracle\test-oracledb\node_modules\oracledb
> node package/oracledbinstall.js
oracledb Beginning installation
oracledb Verifying installation
oracledb Continuing installation
oracledb ERR! NJS-054: Binary build/Release/oracledb.node was not installed.
oracledb ERR! Pre-built binary packages are not available for this version of Node.js (NODE_MODULE_VERSION="59")
oracledb ERR! Failed to install binary package oracledb-v2.3.0-node-v59-win32-x64.gz
oracledb ERR! connect ETIMEDOUT 192.30.255.113:443
oracledb ERR! For help see https://oracle.github.io/node-oracledb/INSTALL.html#troubleshooting
npm WARN test-oracledb@1.0.0 No description
npm WARN test-oracledb@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 87
npm ERR! oracledb@2.3.0 install: `node package/oracledbinstall.js`
npm ERR! Exit status 87
npm ERR!
npm ERR! Failed at the oracledb@2.3.0 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! C:\Users\<username>\AppData\Roaming\npm-cache\_logs\2018-06-11T19_17_03_152Z-debug.log
RCA и выводы
Рассмотрев сценарий oracledbinstall.js
, отвечающий за «установку» модуля, ямог сразу увидеть одну проблему.
Сценарий начинается со следующего:
Так что я совершенно уверен, когда он пытается связаться с Github, чтобызахватите необходимые бинарные файлы и другие сценарии, необходимые для работы модуля oracledb, он блокируется моим брандмауэром .
разрешение?
Так что я хотел бы знать, есть ли способ успешно реализовать это.