Skip to content

Commit ab1facd

Browse files
committed
Mention setting a proxy
1 parent 12041c4 commit ab1facd

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

INSTALL.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ alternatively use `yum` to install these packages from the
110110

111111
### 2.3 Install the driver
112112

113+
If you are behind a firewall, you may need to set your proxy, for
114+
example:
115+
116+
```
117+
npm config set https-proxy http://my-proxy.example.com:80
118+
```
119+
113120
Install node-oracledb from the
114121
[NPM repository](https://www.npmjs.com/package/oracledb):
115122

@@ -219,6 +226,13 @@ other Oracle software installed, then these variables are not
219226
required. See
220227
[Oracle Client Location Heuristic on Linux](#linuxinstsearchpath).
221228

229+
If you are behind a firewall, you may need to set your proxy, for
230+
example:
231+
232+
```
233+
npm config set https-proxy http://my-proxy.example.com:80
234+
```
235+
222236
Install node-oracledb from the
223237
[NPM repository](https://www.npmjs.com/package/oracledb):
224238

@@ -282,17 +296,24 @@ export PATH=/opt/node-v0.12.4-linux-x64/bin:$PATH
282296

283297
### 4.2 Install the driver
284298

285-
The installer will look for Oracle libraries and headers under
299+
The installer will automatically look for Oracle libraries and headers under
286300
`$ORACLE_HOME`, see
287301
[Oracle Client Location Heuristic on Linux](#linuxinstsearchpath).
288302
However, if you have Instant Client RPMs installed and don't wish the RPMs
289-
to be used, you must explicitly set:
303+
to be used, you must explicitly set two environment variables:
290304

291305
```
292306
export OCI_LIB_DIR=$ORACLE_HOME/lib
293307
export OCI_INC_DIR=$ORACLE_HOME/rdbms/public
294308
```
295309

310+
If you are behind a firewall, you may need to set your proxy, for
311+
example:
312+
313+
```
314+
npm config set https-proxy http://my-proxy.example.com:80
315+
```
316+
296317
Install node-oracledb from the
297318
[NPM repository](https://www.npmjs.com/package/oracledb):
298319

@@ -317,7 +338,7 @@ Download the
317338
[example programs](https://github.com/oracle/node-oracledb/tree/master/examples) from GitHub.
318339

319340
Edit `dbconfig.js` and set the database credentials to your
320-
environment.
341+
environment:
321342

322343
```
323344
module.exports = {
@@ -388,6 +409,13 @@ export OCI_INC_DIR=/whereever/instantclient/sdk/include
388409
If Instant Client is in `/opt/oracle/instantclient`, then these
389410
variables are not needed.
390411

412+
If you are behind a firewall, you may need to set your proxy, for
413+
example:
414+
415+
```
416+
npm config set https-proxy http://my-proxy.example.com:80
417+
```
418+
391419
Install node-oracledb from the
392420
[NPM repository](https://www.npmjs.com/package/oracledb):
393421

@@ -499,6 +527,13 @@ set OCI_LIB_DIR=C:\oracle\product\12.1.0\dbhome_1\oci\lib\msvc
499527
set OCI_INC_DIR=C:\oracle\product\12.1.0\dbhome_1\oci\include
500528
```
501529

530+
If you are behind a firewall, you may need to set your proxy, for
531+
example:
532+
533+
```
534+
npm config set https-proxy http://my-proxy.example.com:80
535+
```
536+
502537
Install node-oracledb from the
503538
[NPM repository](https://www.npmjs.com/package/oracledb):
504539

0 commit comments

Comments
 (0)