Mention the oracle.com GitHub mirror as an install option
This commit is contained in:
parent
d59a5e34fd
commit
713adc0258
30
INSTALL.md
30
INSTALL.md
|
@ -1432,8 +1432,26 @@ Some companies block access to github.com so `npm install oracledb`
|
||||||
will fail to download binaries, as will installing source code from
|
will fail to download binaries, as will installing source code from
|
||||||
GitHub with `npm install oracle/node-oracledb.git#v2.1.0`.
|
GitHub with `npm install oracle/node-oracledb.git#v2.1.0`.
|
||||||
|
|
||||||
To install node-oracledb in this case, compile the source code
|
There are two suggested methods for installation.
|
||||||
included in the npm package:
|
|
||||||
|
##### 3.12.3.1 Use the oracle.com GitHub mirror
|
||||||
|
|
||||||
|
Oracle has a mirror of the GitHub repository source code that can be
|
||||||
|
cloned with:
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone git://oss.oracle.com/git/oracle/node-oracledb.git/
|
||||||
|
```
|
||||||
|
|
||||||
|
Binaries are not cloned. Follow the general instructions in
|
||||||
|
[Node-oracledb Installation from Source Code](#github) but install by
|
||||||
|
running `npm install path-to-your-clone-directory` from outside the
|
||||||
|
clone directory.
|
||||||
|
|
||||||
|
##### 3.12.3.2 Use the source code in the npm package
|
||||||
|
|
||||||
|
Alternatively you can compile the source code that is included in the
|
||||||
|
npm package:
|
||||||
|
|
||||||
- Download the node-oracledb package from npm, for example
|
- Download the node-oracledb package from npm, for example
|
||||||
`https://registry.npmjs.com/oracledb/-/oracledb-2.1.0.tgz`
|
`https://registry.npmjs.com/oracledb/-/oracledb-2.1.0.tgz`
|
||||||
|
@ -1465,14 +1483,12 @@ included in the npm package:
|
||||||
npm install nan
|
npm install nan
|
||||||
```
|
```
|
||||||
|
|
||||||
- Install the build prerequisites for compilation, following the
|
- Follow the general instructions in [Node-oracledb Installation from
|
||||||
[Node-oracledb Installation Instructions](#instructions).
|
Source Code](#github) but install by running
|
||||||
|
|
||||||
- Build node-oracledb from outside the directory:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install ./oracledb_build
|
npm install ./oracledb_build
|
||||||
```
|
```
|
||||||
|
from outside the directory.
|
||||||
|
|
||||||
## <a name="installingv1"></a> 4. Installing Node-oracledb 1.x
|
## <a name="installingv1"></a> 4. Installing Node-oracledb 1.x
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue