2👍
As I have arch 32bit in nvm and I need to install node-oracledb 32bit because of different dependencies. There was no option to use 64 bit at all because of the requirements.
There are two solutions that worked for me.
1- first solution was to install directly from a url
npm install https://github.com/oracle/node-oracledb/releases/download/v5.5.0/oracledb-5.5.0.tgz
2- Second solution was to build the oracledb package by yourself for the required environment by following this link
In my case, I have to take care of following things.
- node should be 32bit in use.
- MSbuild tools for npm should be set
- if proxy is used, proxy should be setup for npm.
- python needs to be installed
afterwards you can install from a file like this
npm install file:path/oracledb-5.5.0.tgz
Source:stackexchange.com