Skip to content

Instantly share code, notes, and snippets.

@hansrwindhoff
Last active August 29, 2015 14:17
Show Gist options
  • Save hansrwindhoff/28c96d487ce7e315fe6c to your computer and use it in GitHub Desktop.
Save hansrwindhoff/28c96d487ce7e315fe6c to your computer and use it in GitHub Desktop.
installing node.js npm modules on windows when c-compiler needs to run (gyp)
If you have visual studio 2013:
npm install node-inspector --msvs_version=2013
or other versions as they are present (2010, 2012,...)
here the output showing the successful build steps:
U:\...> npm install --msvs_version=2013 node-inspector
npm WARN package.json [email protected] No repository field.
-
> [email protected] install U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\ws>node "C:\Users\hansw\AppData\Roa
ming\nvm\v0.10.32\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
bufferutil.cc
C:\Users\hansw\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persi
stent<v8::Object> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' [U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug
\node_modules\node-inspector\node_modules\ws\build\bufferutil.vcxproj]
Creating library U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\ws\build\Rel
ease\bufferutil.lib and object U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\w
s\build\Release\bufferutil.exp
Generating code
Finished generating code
bufferutil.vcxproj -> U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\ws\build\R
elease\\bufferutil.node
validation.cc
C:\Users\hansw\.node-gyp\0.10.32\deps\v8\include\v8.h(179): warning C4506: no definition for inline function 'v8::Persi
stent<v8::Object> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' [U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug
\node_modules\node-inspector\node_modules\ws\build\validation.vcxproj]
Creating library U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\ws\build\Rel
ease\validation.lib and object U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\w
s\build\Release\validation.exp
Generating code
Finished generating code
validation.vcxproj -> U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\ws\build\R
elease\\validation.node
npm WARN optional dep failed, continuing [email protected]
> [email protected] install U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\v8-debug
> node-pre-gyp install --fallback-to-build
[v8-debug] Success: "U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\v8-debug\build
\debug\v0.4.2\node-v11-win32-ia32\debug.node" is installed via remote
> [email protected] install U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\v8-prof
iler
> node-pre-gyp install --fallback-to-build
[v8-profiler] Success: "U:\code\GitHub\VSTS\NodejsDebug\NodejsDebug\node_modules\node-inspector\node_modules\v8-profiler
\build\profiler\v5.2.4\node-v11-win32-ia32\profiler.node" is installed via remote
npm WARN prefer global [email protected] should be installed with -g
[email protected] node_modules\node-inspector
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], esca
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], con
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], proxy-ad
[email protected], [email protected], [email protected], [email protected], [email protected])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment