@@ -1432,8 +1432,26 @@ Some companies block access to github.com so `npm install oracledb`
1432
1432
will fail to download binaries, as will installing source code from
1433
1433
GitHub with ` npm install oracle/node-oracledb.git#v2.1.0 ` .
1434
1434
1435
- To install node-oracledb in this case, compile the source code
1436
- included in the npm package:
1435
+ There are two suggested methods for installation.
1436
+
1437
+ ##### 3.12.3.1 Use the oracle.com GitHub mirror
1438
+
1439
+ Oracle has a mirror of the GitHub repository source code that can be
1440
+ cloned with:
1441
+
1442
+ ```
1443
+ git clone git://oss.oracle.com/git/oracle/node-oracledb.git/
1444
+ ```
1445
+
1446
+ Binaries are not cloned. Follow the general instructions in
1447
+ [ Node-oracledb Installation from Source Code] ( #github ) but install by
1448
+ running ` npm install path-to-your-clone-directory ` from outside the
1449
+ clone directory.
1450
+
1451
+ ##### 3.12.3.2 Use the source code in the npm package
1452
+
1453
+ Alternatively you can compile the source code that is included in the
1454
+ npm package:
1437
1455
1438
1456
- Download the node-oracledb package from npm, for example
1439
1457
` https://registry.npmjs.com/oracledb/-/oracledb-2.1.0.tgz `
@@ -1465,14 +1483,12 @@ included in the npm package:
1465
1483
npm install nan
1466
1484
```
1467
1485
1468
- - Install the build prerequisites for compilation, following the
1469
- [ Node-oracledb Installation Instructions] ( #instructions ) .
1470
-
1471
- - Build node-oracledb from outside the directory:
1472
-
1486
+ - Follow the general instructions in [ Node-oracledb Installation from
1487
+ Source Code] ( #github ) but install by running
1473
1488
```
1474
1489
npm install ./oracledb_build
1475
1490
```
1491
+ from outside the directory.
1476
1492
1477
1493
## <a name =" installingv1 " ></a > 4. Installing Node-oracledb 1.x
1478
1494
0 commit comments