error using npm to install oracledb - node.js

tried installing node oracledb on windows 7 and it gave this error
npm install oracledb
I followed all the steps on this tutorial Installing node-oracledb on Microsoft Windows
but it doesn't work, can you gauys please help me

From the error message (English part), I guess you installed the wrong Node.js package. Say, your Windows machine is X64 and you installed the X86 32-bit Node.js. Or, vice versa.

Related

Facing issue installing oracle in windows with the command npm install oracle

My machine having oracle 11g. Receiving the attached error, while installing oracle. Appreciated if someone helps me on this.
You need to have an appropriate build environment installed to compile the oracle addon. On Windows, it should be as simple as doing: npm install -g windows-build-tools. That will fetch and install Python, the VC++ compiler, and related build tools.

Node.js error : failed to initialize context

I just installed Node.js from Visual Studio installation.
When I tried to call node on the command prompt, I got this error. I also got this when I tried to do npm init and npm install
How do I fix this?
I encountered this problem on my Windows 10 64-bit computer. From looking at Programs and Features, I saw that I had Node.js and Node.js Chakra installed. I uninstalled Node.js and then downloaded and installed again it from https://nodejs.org/en/download/.
This, however, did not fix the problem. So I uninstalled Node.js Chakra; and when I opened a new command prompt, node and npm were working.
However, I'm not sure if I needed to uninstall and reinstall Node.js or if I only needed to uninstall Chakra. I probably should have uninstalled Chakra first and node and npm might have worked after that.

Error in Connecting Oracledb from node js

C:\Users\ramachandran.s>npm install oracledb
oracledb#1.2.0 install C:\Users\ramachandran.s\node_modules\oracledb
node-gyp rebuild
C:\Users\ramachandran.s\node_modules\oracledb>node "C:\Program Files (x86)\node_
modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebui
ld
C:\Users\ramachandran.s\node_modules\oracledb\build\binding.sln : error MSB3411
: Could not load the Visual C++ component "VCBuild.exe". If the component is no
t installed, either 1) install the Microsoft Windows SDK for Windows Server 200
8 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008.
What am i missing , please help
As it says in the error message, you need to install either the Windows SDK for Windows Server 2008 or Microsoft Visual Studio 2008. The oracledb Node.JS package uses the Oracle OCI libraries, and they are compiled when you install the package.
I run oracledb on Linux and OSX, so I'm not sure, but you might want to see if the error message goes away after installing https://www.visualstudio.com/en-US/products/visual-studio-express-vs. It's free.
Here is a great install guide that includes the steps to solve the issue above.
https://community.oracle.com/docs/DOC-931127
The Oracle OCI libs need to be installed and this guide will show you how.
By installing windows build tools as below all the gyp errors will be resolved
npm install -g --production windows-build-tools
Hope it will be helpful for someone

NPM install BCRYPT error: MSB8003

I'm trying to install the bcrypt package with the command line
npm install bcrypt
But the prompt returns an error:
I've installed Microsoft Visual Studio 2015, i tried wth --msvs_version=2015 but i still had this error. Could you help me?
I'm using Windows 10 x64, Node.js 0.12.7, npm 2.11.3 and node-gyp 2.0.2
Follow the instruction properly given in node-gyp and bcrypt.
Which require proper python version , visual studio etc..
or you can also use
https://www.npmjs.com/package/bcryptjs
Which doesnot have any depedency like vistual studio on Windows machine.

Problems installing socket.io

I’m developing a program that requires Node.js and Socket.io. After attempting to install both, I found no inconvenience with “Node.js” but run into an error when inputting npm install socket.io in CMD:
C:\Users\otori\node_modules\socket.io\node_modules\socket.io-client\node_module s\ws\build\binding.sln : MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008.
error code: error MSB3411
It would appear my node.js or my CMD cannot find VCBuild.exe and are asking for me to install VS2008, which I already have installed (I’ve also tried with VS 2010).
Any help or guidance is deeply appreciated, im using Windows 8 x64 and node.js v0.10.1
Sorry to dig up an old question, but your question is the first result when I searched for "Socket.io VCBuild"
The solution I found, after stumbling around was :
npm install socket.io --msvs_version=2012
or
npm install sqlite3 --msvs_version=auto

Resources