Skip to content

Commit 2125453

Browse files
committed
Mention npm command to set python config
1 parent 0b86935 commit 2125453

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

INSTALL.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ additional tools to build from source code:
157157
`python --version` to find the version you have.
158158

159159
If another version of Python occurs first in your binary path then,
160-
when you install node-oracledb, use the `--python` option to
160+
when you install node-oracledb, then run `npm config set python
161+
/wherever/python-2.7/bin/python` or use the `--python` option to
161162
indicate the correct version. For example: `npm install
162163
--python=/wherever/python-2.7/bin/python oracledb`.
163164

@@ -179,7 +180,8 @@ If source code is being compiled you need:
179180
4.7 or later][5] or upgrade to Oracle Linux 7.
180181

181182
- Python 2.7 for node-gyp. If another version of Python occurs first
182-
in your binary path then, when you install node-oracledb, use the
183+
in your binary path then, when you install node-oracledb, then run
184+
`npm config set python /wherever/python-2.7/bin/python` or use the
183185
`--python` option to indicate the correct version. For example:
184186
`npm install --python=/whereever/python-2.7/bin/python oracledb`.
185187

@@ -334,7 +336,8 @@ If source code is being compiled you need:
334336
4.7 or later][5] or upgrade to Oracle Linux 7.
335337

336338
- Python 2.7 for node-gyp. If another version of Python occurs first
337-
in your binary path then, when you install node-oracledb, use the
339+
in your binary path then, when you install node-oracledb, then run
340+
`npm config set python /wherever/python-2.7/bin/python` or use the
338341
`--python` option to indicate the correct version. For example:
339342
`npm install --python=/whereever/python-2.7/bin/python oracledb`.
340343

@@ -490,7 +493,8 @@ If source code is being compiled you need:
490493
4.7 or later][5] or upgrade to Oracle Linux 7.
491494

492495
- Python 2.7 for node-gyp. If another version of Python occurs first
493-
in your binary path then, when you install node-oracledb, use the
496+
in your binary path then, when you install node-oracledb, then run
497+
`npm config set python /wherever/python-2.7/bin/python` or use the
494498
`--python` option to indicate the correct version. For example:
495499
`npm install --python=/whereever/python-2.7/bin/python oracledb`.
496500

0 commit comments

Comments
 (0)