-
-
Couldn't load subscription status.
- Fork 33.6k
Closed
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
I'm trying to get the simple hello world example working on iojs and when I run npm install from https://github.com/iojs/node-addon-examples/tree/master/1_hello_world/nan I get this output
npm WARN package.json [email protected] No repository field.
> [email protected] install c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan
> node-gyp rebuild
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan>if not defined npm_config_node_gyp (node "c:\Program Files\iojs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
hello.cc
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(430): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(456): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(481): error C2039: 'ExternalAsciiStringResource' : is not a member of 'v8::String' [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
C:\Users\Kolodny\.node-gyp\1.8.1\deps\v8\include\v8.h(1908) : see declaration of 'v8::String'
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(481): error C2065: 'ExternalAsciiStringResource' : undeclared identifier [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(481): error C2065: 'resource' : undeclared identifier [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(481): error C2448: 'NanNew' : function-style initializer appears to be a function definition [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2103): error C2039: 'IsExternalAscii' : is not a member of 'v8::String' [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
C:\Users\Kolodny\.node-gyp\1.8.1\deps\v8\include\v8.h(1908) : see declaration of 'v8::String'
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2104): error C2039: 'ExternalAsciiStringResource' : is not a member of 'v8::String' [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
C:\Users\Kolodny\.node-gyp\1.8.1\deps\v8\include\v8.h(1908) : see declaration of 'v8::String'
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2104): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2104): error C2143: syntax error : missing ';' before '*' [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2104): error C2065: 'ext' : undeclared identifier [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2105): error C2065: 'ext' : undeclared identifier [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2105): error C2039: 'GetExternalAsciiStringResource' : is not a member of 'v8::String' [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
C:\Users\Kolodny\.node-gyp\1.8.1\deps\v8\include\v8.h(1908) : see declaration of 'v8::String'
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2106): error C2065: 'ext' : undeclared identifier [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2106): error C2227: left of '->data' must point to class/struct/union/generic type [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
type is 'unknown-type'
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2107): error C2065: 'ext' : undeclared identifier [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\node_modules\nan\nan.h(2107): error C2227: left of '->length' must point to class/struct/union/generic type [c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\build\hello.vcxproj]
type is 'unknown-type'
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Program Files\iojs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:169:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1009:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "c:\\Program Files\\iojs\\node.exe" "c:\\Program Files\\iojs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan
gyp ERR! node -v v1.8.1
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Program Files\\iojs\\node.exe" "c:\\Program Files\\iojs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v1.8.1
npm ERR! npm v2.8.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the hello_world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls hello_world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\Users\Kolodny\Documents\RandomProjects\node-addon-examples\1_hello_world\nan\npm-debug.logMetadata
Metadata
Assignees
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.