Fix NodeJS 32 bits error while Npm i odbc
Budget: $10 – $30 CAD
I need to use nodejs 32bit for a project and I am not able to resolve an issue I have. When trying to "npm i odbc", I get an error concerning Microsoft Visual Studio and that it "does not match this Visual Studio Command Prompt".
The odbc package is partly built in C++ explaining the need for Visual Studio. However, I did install the "Visual Studio Community 2022" with the "Desktop development with C++" and still get the error.
I tried many things I saw in stackoverflow and github discussions, but still can't make it work. Can someone help me resolve this issue? Here are the logs from my last attempt.
npm ERR! code 1
npm ERR! path C:\Users\ODBC\Documents\odbc\node_modules\odbc
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files (x86)\nodejs\node.exe C:\Users\ODBC\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ODBC\Documents\odbc\node_modules\odbc\lib\bindings\napi-v6\odbc.node --module_name=odbc --module_path=C:\Users\ODBC\Documents\odbc\node_modules\odbc\lib\bindings\napi-v6 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6 --msvs_version=2022' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
npm ERR! node-pre-gyp info using node@18.16.0 | win32 | ia32
npm ERR! node-pre-gyp info check checked for "C:\Users\ODBC\Documents\odbc\node_modules\odbc\lib\bindings\napi-v6\odbc.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/markdirish/node-odbc/releases/download/v2.4.8/odbc-v2.4.8-win32-ia32-napi-v6.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/markdirish/node-
Complete erorr log available.
The odbc package is partly built in C++ explaining the need for Visual Studio. However, I did install the "Visual Studio Community 2022" with the "Desktop development with C++" and still get the error.
I tried many things I saw in stackoverflow and github discussions, but still can't make it work. Can someone help me resolve this issue? Here are the logs from my last attempt.
npm ERR! code 1
npm ERR! path C:\Users\ODBC\Documents\odbc\node_modules\odbc
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files (x86)\nodejs\node.exe C:\Users\ODBC\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\ODBC\Documents\odbc\node_modules\odbc\lib\bindings\napi-v6\odbc.node --module_name=odbc --module_path=C:\Users\ODBC\Documents\odbc\node_modules\odbc\lib\bindings\napi-v6 --napi_version=8 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6 --msvs_version=2022' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
npm ERR! node-pre-gyp info using node@18.16.0 | win32 | ia32
npm ERR! node-pre-gyp info check checked for "C:\Users\ODBC\Documents\odbc\node_modules\odbc\lib\bindings\napi-v6\odbc.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/markdirish/node-odbc/releases/download/v2.4.8/odbc-v2.4.8-win32-ia32-napi-v6.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/markdirish/node-
Complete erorr log available.