When I try to install Geddy using npm I get the following errors:
http://s15.postimage.org/rwkrcxeuz/geddy.png
I've installed the SDK and the VS 2008, but still installing Geddy gives the errors... The Geddy commands are working, for now, but I might encouter some problems later because of the errors.
Any suggestions about getting rid of the errors?
Try the options given here
Install Microsoft Windows SDK for your Windows version, .NET Framework 3, Microsoft Visual Studio 2008
Set environment variable PATH to include directories required
Try installing it with Administrator rights
Related
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
I'm trying to install bcrypt on my laptop, Windows 7 64bit.
I have already installed Microsoft Visual C++ 2008 Redistributable Package, 2012 Redistributable package. Also installed Visual Studio 2013 community with update 4.
Im trying to add node module with this command npm install bcrypt --msvs_version=2013 into my nodejs project https://github.com/steelx/nodeauth
I have already installed required Python 2.7.9 and node-gyp.
But still no luck.
Here is the full error log here
This is actually a common issue. You'll need to install the 64-bit Windows SDK.
https://github.com/TooTallNate/node-gyp/#installation
Cheers!
It was a security firewall that was blocking download links.
I am trying to install the following module using node.js, but keep on getting the following error. Do you have any suggestions on what I should do? So I am using windows 7 and have installed .NET Framework 2.0 SDK as well.
npm install execSync
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK,
2) install Microsoft Visual Studio 2005 or
3) add the location of the component to the system path if it is installed elsewhere.
You need to add VCBuild.exe to your path. Check out this answer on how to do it: Testacular install fails, no vcbuild.exe
The easiest way is to install a trial version of visual studio and run npm in the visual studio command prompt as administrator. Visual studio 2012 does the job.
npm install -g windows-build-tools
ran in an administration window and we will see:
Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!
Waiting for installers... -Successfully installed Python 2.7
Waiting for installers... /Successfully installed Visual Studio Build Tools.
npm install --global --production windows-build-tools
will resolve 90% of the install issues in windows for node
This steps helped me a lot:
"According to the readme file in Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1, to ensure that your system has a supported configuration, uninstall the following products and then reinstall them in the order listed:"
1 - Visual C++ 2010 Express or Visual Studio 2010
2 - Windows SDK 7.1 Note: If you get error on installation, maybe this link will help you.
3 - Visual Studio 2010 SP1
4 - Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1
For me, only the step two was enough.
Pay attention in second step's note "Note: If you get error on installation, maybe this link will help you". I had problem and this tip was important.
For more information, this link can be useful: https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup
After trying various .Net and Visual I finally managed to get npm to load and build mongoose on Windows 8.1 by downloading Visual Studio 2013 Prof
ftp://ftp.microsoft.com/bussys/winsock/winsock2/qos.h
Interestingly, even after installing Visual Studio 2015 and adding the path to VCBuild.exe to Environment Variables -> PATH, this error was occuring when i tried to npm install. Restarting the machine didn't resolve the error. I tried starting the app using node app.js and it works!
This command will add necessary packages.
npm install --global --production windows-build-tools
I am trying to install socket.io on windows with npm for use on a nodeJS server.
First, when I typed "npm install socket.IO" i had an error in the log saying something about python and node-gyp. I installed python 2.7.3 and set the environment variables.
Now I got a new error, which has something to do with visual studio (what the hell does VS have to do with npm ? Is it about the compiler? ).
The error is the same as here npm install for some packages (sqlite3, socket.io) fail with error MSB8020 on Windows 7
But when I use the option in the answer instead of the error it tells me something about a possible data loss (c4267) but doesn't log any error.
Then when I start my app, it tells me cannot find module socket.io still
What could this come from ?
Oh and also when i do npm config get root it tells me "undefined" could it have anything to do with it ?
Should I install the modules globally or locally ?
At least one of the packages in Socket.IO's dependency tree is a C/C++ addons which needs to be compiled on your system as it's installed. And, since it's a dependency, if it doesn't succeed in installing, neither will Socket.IO.
To enable cross-system compilation, Node.js uses node-gyp as its build system. You'll need to have it installed as a global package:
npm install -g node-gyp
As well as have its dependencies installed. Abridged version:
Python 2
C/C++ Compiler / Build Tools
For Windows, Microsoft Visual Studio 2013 (C++ or Windows Desktop) (Express edition)
For 64-bit, may need Windows 7 64-bit SDK
Then, you should be able to install Socket.IO as a local package so you can require it:
npm install socket.io
I had a similar problem on Mac.
What resolved my problem is installing a slightly older version of Socket.io.
I did:
npm install socket.io#"~0.8.1"
which would install the latest version between 0.8.0 to 0.8.9, but not 0.9.0 or above.
Socket.io then installed perfectly.
Make sure you have all the required software to run node-gyp:
https://github.com/TooTallNate/node-gyp
You can configure version of Visual Studio used by gyp via an environment variable so you can avoid having to set the --msvs_version=2012 property.
Examples:
set GYP_MSVS_VERSION=2012 for Visual Studio 2012
set GYP_MSVS_VERSION=2013e (the 'e' stands for 'express edition')
For the full list see
- https://github.com/joyent/node/blob/v0.10.29/tools/gyp/pylib/gyp/MSVSVersion.py#L209-294
This is still painful for Windows users of NodeJS as it assumes you have a copy of Visual Studio installed and many end users will never have this. So I'm lobbying Joyent to the encourage them to include web sockets as part of CORE node and also to possible ship a GNU gcc compiler as part of NodeJS install so we can permanently fix this problem.
Feel free to add your vote at:
https://github.com/joyent/node/issues/8005#issuecomment-50545326
The problem causing the compile failure is that the ws module installed by the engine.io module required by socket.io pulls in a backlevel version of nan. See https://github.com/BrowserSync/grunt-browser-sync/issues/95 for details. To work around the problem after the build failure:
cd to node_modules/socket.io/node_modules/engine.io/node_modules/ws
edit package.json to change the release of nan from 1.4.x to 1.6.0
issue command node-gyp rebuild
You should now be able to use socket.io
Another approach is to use Docker for Windows and spin up a NodeJS environment. While developing you can mount your Node code as a Docker volume and so continue to update your code from Windows but execute it and install it's dependencies inside a Linux VM. When you deploy you might prefer to use a Dockerfile that COPY's your Node code into your Docker image and so bakes it into the release image you deploy.
This approach might be required if you don't want to risk changing the socket.io version of your code or its dependencies.
It also may be a valuable solution if you planned to deploy to a corporate Intranet or public/private Cloud.
Docker can also be very handy for testing deployment under different versions of Node without disturbing the development environment of your Windows computer (e.g. for testing a NodeJS lib).
Official NodeJS Docker images
An explanation of how to use these images
this problem makes me very troubled..
I tried many solutions.
I installed .NET Framework 2.0 SDK.
I installed Python 2.7.x
I installed VS 2012 Express
I set some paths
I executed npm install xxx with the argument --msvs_version=2010(or 2012/2013..)...
But all failed.
finally, I uninstalled Python & .NET Framework 2.0 SDK & VS 2012, clear those paths,enable Windows Update, install all essential updates, restart my computer
then execute commands below:
npm install node-gyp -g
npm install socket.io -g
npm install browser-sync -g
there is no errors in installation logs.
Note : this solution may not work for you, but for me
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