Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install fails with compile errors #4

Open
tracksaw opened this issue Oct 4, 2017 · 0 comments
Open

npm install fails with compile errors #4

tracksaw opened this issue Oct 4, 2017 · 0 comments

Comments

@tracksaw
Copy link

tracksaw commented Oct 4, 2017

This is in a Windows CMD shell. Also get the same errors in the GIT bash shell....

E:\GitHub\nbind-example-universal>npm install

nbind-example-universal@0.2.0 install E:\GitHub\nbind-example-universal
(npm run build:native || echo Warning: problems with native build)

nbind-example-universal@0.2.0 build:native E:\GitHub\nbind-example-universal
autogypi -r build && node-gyp -C build/native configure build && copyasm build/native dist

E:\GitHub\nbind-example-universal>if not defined npm_config_node_gyp (node "E:\web_packages\nvm\nvm\v8.2.1\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-g
yp.js" -C build/native configure build ) else (node "" -C build/native configure build )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
nbind.vcxproj -> E:\GitHub\nbind-example-universal\build\native\build\Release\nbind.node
nbind.vcxproj -> E:\GitHub\nbind-example-universal\build\native\build\Release\nbind.pdb (Full PDB)

Copying:
build\native\build\Release\nbind.node
to:
E:\GitHub\nbind-example-universal\dist

npm WARN prepublish-on-install As of npm@5, prepublish scripts are deprecated.
npm WARN prepublish-on-install Use prepare for build steps and prepublishOnly for upload-only.
npm WARN prepublish-on-install See the deprecation note in npm help scripts for more information.

nbind-example-universal@0.2.0 prepublish E:\GitHub\nbind-example-universal
tsc && (npm run build:asmjs || echo Warning: problems with asm.js build)

nbind-example-universal@0.2.0 build:asmjs E:\GitHub\nbind-example-universal
autogypi -r build && node-gyp -C build/asmjs configure build --asmjs=1 && copyasm build/asmjs dist

E:\GitHub\nbind-example-universal>if not defined npm_config_node_gyp (node "E:\web_packages\nvm\nvm\v8.2.1\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-g
yp.js" -C build/asmjs configure build --asmjs=1 ) else (node "" -C build/asmjs configure build --asmjs=1 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
common.cc
reflect.cc
......\node_modules\nbind\src\common.cc(6): error C2871: 'nbind': a namespace with this name does not exist [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(9): error C2653: 'nbind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(12): error C2653: 'Status': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(14): error C2653: 'NBind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(14): error C2061: syntax error: identifier 'cbFunction' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(15): error C3861: 'getClassList': identifier not found [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(6): error C2871: 'nbind': a namespace with this name does not exist [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(15): error C3861: '': identifier not found [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(8): error C2653: 'BaseSignature': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(15): error C3312: no callable 'begin' function found for type 'unknown-type' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.v
cxproj]
......\node_modules\nbind\src\reflect.cc(8): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [E:\GitHub\nbind-example-universal\build\a
smjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(15): error C3861: '': identifier not found [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(8): error C2146: syntax error: missing ';' before identifier 'SignatureType' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.
vcxproj]
......\node_modules\nbind\src\common.cc(15): error C3312: no callable 'end' function found for type 'unknown-type' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcx
proj]
......\node_modules\nbind\src\reflect.cc(8): warning C4091: '': ignored on left of 'int' when no variable is declared [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.
vcxproj]
......\node_modules\nbind\src\common.cc(16): error C2065: 'bindClass': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(10): error C2065: 'NBindID': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(18): error C2065: 'bindClass': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(10): error C2146: syntax error: missing ')' before identifier 'classType' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcx
proj]
......\node_modules\nbind\src\common.cc(18): error C2227: left of '->getName' must point to class/struct/union/generic type [E:\GitHub\nbind-example-universal\build\asmjs\build
nbind.vcxproj]
......\node_modules\nbind\src\common.cc(18): note: type is 'unknown-type'
......\node_modules\nbind\src\common.cc(18): error C3861: 'strcmp': identifier not found [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(10): error C2039: 'forward_list': is not a member of 'std' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(19): error C2065: 'bindClass': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
predefined C++ types (compiler internal)(209): note: see declaration of 'std'
......\node_modules\nbind\src\common.cc(19): error C2227: left of '->setValueConstructorJS' must point to class/struct/union/generic type [E:\GitHub\nbind-example-universal\buil
d\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(19): note: type is 'unknown-type'
......\node_modules\nbind\src\reflect.cc(10): error C2143: syntax error: missing ';' before '{' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(19): error C2065: 'func': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(10): error C2447: '{': missing function header (old-style formal list?) [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxpr
oj]
......\node_modules\nbind\src\common.cc(16): error C2044: illegal continue [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(47): error C2653: 'NBind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(67): error C2039: 'forward_list': is not a member of 'std' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(48): error C2065: 'cbFunction': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
predefined C++ types (compiler internal)(209): note: see declaration of 'std'
......\node_modules\nbind\src\reflect.cc(48): error C2065: 'outPrimitive': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(67): error C2143: syntax error: missing ';' before '<' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(49): error C2065: 'cbFunction': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(67): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [E:\GitHub\nbind-example-universal\build\a
smjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(49): error C2065: 'outType': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(67): error C2653: 'nbind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(50): error C2065: 'cbFunction': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(67): error C2143: syntax error: missing ';' before '{' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(50): error C2065: 'outClass': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(67): error C2447: '{': missing function header (old-style formal list?) [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxpro
j]
......\node_modules\nbind\src\reflect.cc(51): error C2065: 'cbFunction': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(74): error C2039: 'forward_list': is not a member of 'std' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(51): error C2065: 'outSuper': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
predefined C++ types (compiler internal)(209): note: see declaration of 'std'
......\node_modules\nbind\src\reflect.cc(52): error C2065: 'cbFunction': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(74): error C2143: syntax error: missing ';' before '<' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(53): error C2065: 'outMethod': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [E:\GitHub\nbind-example-universal\build\a
smjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(53): error C2182: 'reflect': illegal use of type 'void' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(74): error C2086: 'int forward_list': redefinition [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(53): error C2448: 'reflect': function-style initializer appears to be a function definition [E:\GitHub\nbind-example-universal\build\asm
js\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(67): note: see declaration of 'forward_list'
......\node_modules\nbind\src\reflect.cc(107): error C2653: 'NBind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(74): error C2653: 'nbind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [E:\GitHub\nbind-example-universal\build
\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(74): error C2143: syntax error: missing ';' before '{' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(107): error C2146: syntax error: missing ';' before identifier 'queryType' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vc
xproj]
......\node_modules\nbind\src\common.cc(74): error C2447: '{': missing function header (old-style formal list?) [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxpro
j]
......\node_modules\nbind\src\reflect.cc(110): error C2143: syntax error: missing ';' before '{' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(81): error C2653: 'nbind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\reflect.cc(110): error C2447: '{': missing function header (old-style formal list?) [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxp
roj]
......\node_modules\nbind\src\common.cc(97): error C2653: 'nbind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(99): error C2065: 'Typer': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(99): error C2062: type 'void' unexpected [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(99): error C2039: 'makeID': is not a member of 'global namespace'' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(100): error C2039: 'makeID': is not a member of 'global namespace'' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(101): error C2039: 'string': is not a member of 'std' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
predefined C++ types (compiler internal)(209): note: see declaration of 'std'
......\node_modules\nbind\src\common.cc(101): error C2039: 'makeID': is not a member of 'global namespace'' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(103): error C2039: 'makeID': is not a member of 'global namespace'' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(104): error C2039: 'makeID': is not a member of 'global namespace'' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(105): error C2039: 'makeID': is not a member of 'global namespace'' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj]
......\node_modules\nbind\src\common.cc(106): error C2039: 'makeID': is not a member of 'global namespace'' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(108): error C2143: syntax error: missing ';' before '}' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(110): error C2059: syntax error: 'return' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(111): error C2059: syntax error: '}' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(111): error C2143: syntax error: missing ';' before '}' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(113): error C2653: 'nbind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(113): error C2143: syntax error: missing ';' before '{' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(113): error C2447: '{': missing function header (old-style formal list?) [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxpr oj] ..\..\..\node_modules\nbind\src\common.cc(117): error C2653: 'nbind': is not a class or namespace name [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(119): error C2061: syntax error: identifier 'funcPtr' [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(124): error C3861: 'getFunctionList': identifier not found [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(124): error C2228: left of '.emplace_front' must have class/struct/union [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxpr oj] ..\..\..\node_modules\nbind\src\common.cc(124): note: type is 'unknown-type' ..\..\..\node_modules\nbind\src\common.cc(124): error C2065: 'ptr': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(124): error C2065: 'num': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(124): error C2065: 'signature': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(124): error C2065: 'flags': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(129): error C2065: 'Int64': undeclared identifier [E:\GitHub\nbind-example-universal\build\asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(129): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [E:\GitHub\nbind-example-universal\build\ asmjs\build\nbind.vcxproj] ..\..\..\node_modules\nbind\src\common.cc(129): error C2448: 'NBIND_CLASS': function-style initializer appears to be a function definition [E:\GitHub\nbind-example-universal\build \asmjs\build\nbind.vcxproj] gyp ERR! build error gyp ERR! stack Error: msbuildfailed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (E:\web_packages\nvm\nvm\v8.2.1\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\web_packages\\nvm\\nvm\\v8.2.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "-C" "build/asmjs" "configu re" "build" "--asmjs=1" gyp ERR! cwd E:\GitHub\nbind-example-universal\build\asmjs gyp ERR! node -v v8.2.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! nbind-example-universal@0.2.0 build:asmjs:autogypi -r build && node-gyp -C build/asmjs configure build --asmjs=1 && copyasm build/asmjs dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nbind-example-universal@0.2.0 build:asmjs script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! E:\web_packages\npm-cache_logs\2017-10-04T14_46_41_638Z-debug.log
Warning: problems with asm.js build
up to date in 208.638s

E:\GitHub\nbind-example-universal>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant