node-shm icon indicating copy to clipboard operation
node-shm copied to clipboard

Windows: Can't install shm

Open a1diablo opened this issue 8 years ago • 1 comments

I tried installing nodejs-shm by using npm install nodejs-shm and got the following error:

npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "nodejs-shm" npm ERR! node v7.4.0 npm ERR! npm v4.0.5 npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/nodejs-shm npm ERR! 404 npm ERR! 404 'nodejs-shm' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\aldiablo\code\node-test\npm-debug.log

After then I changed the command to npm install shm and errors popped up:

[email protected] install C:\Users\aldiablo\code\node-test\node_modules\shm node-gyp rebuild

C:\Users\aldiablo\code\node-test\node_modules\shm>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. SHM.cc SHMobject.cc win_delay_load_hook.cc c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(25): error C2039: 'ObjectWrap': is not a member of 'n ode' (compiling source file ..\src\SHMobject.cc) [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] C:\Users\aldiablo.node-gyp\7.4.0\include\node\node.h(179): note: see declaration of 'node' (compiling source file .. \src\SHMobject.cc) c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(25): error C2504: 'ObjectWrap': base class undefined (compiling source file ..\src\SHMobject.cc) [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(25): error C2039: 'ObjectWrap': is not a member of 'n ode' (compiling source file ..\src\SHM.cc) [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(28): error C2039: 'Arguments': is not a member of 'v8 ' (compiling source file ..\src\SHMobject.cc) [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] C:\Users\aldiablo.node-gyp\7.4.0\include\node\node_buffer.h(7): note: see declaration of 'node' (compiling source fi le ..\src\SHM.cc)c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(69): note: see declaration of 'v8' (compiling so urce file ..\src\SHMobject.cc)

c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(25): error C2504: 'ObjectWrap': base class undefined (compiling source file ..\src\SHM.cc) [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(28): error C4430: missing type specifier - int assume d. Note: C++ does not support default-int (compiling source file ..\src\SHMobject.cc) [C:\Users\aldiablo\code\node-test \node_modules\shm\build\shm.vcxproj] c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(28): error C2143: syntax error: missing ',' before '& ' (compiling source file ..\src\SHMobject.cc)c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(28): err or C2039: 'Arguments': is not a member of 'v8' (compiling source file ..\src\SHM.cc) [C:\Users\aldiablo\code\node-test
node_modules\shm\build\shm.vcxproj]

c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(69): note: see declaration of 'v8' (compiling source file ..\src
SHM.cc) c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(36): error C2039: 'Arguments': is not a member of 'v8 ' (compiling source file ..\src\SHMobject.cc) [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(28): error C4430: missing type specifier - int assume d. Note: C++ does not support default-int (compiling source file ..\src\SHM.cc) [C:\Users\aldiablo\code\node-test\node_ modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(69): note: see declaration of 'v8' (compiling source file ..\src
SHMobject.cc)c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(28): error C2143: syntax error: missin g ',' before '&' (compiling source file ..\src\SHM.cc)

c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(36): error C4430: missing type specifier - int assume d. Note: C++ does not support default-int (compiling source file ..\src\SHMobject.cc) [C:\Users\aldiablo\code\node-test \node_modules\shm\build\shm.vcxproj] c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(36): error C2039: 'Arguments': is not a member of 'v8 ' (compiling source file ..\src\SHM.cc)c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(36): error C21 43: syntax error: missing ',' before '&' (compiling source file ..\src\SHMobject.cc) [C:\Users\aldiablo\code\node-test
node_modules\shm\build\shm.vcxproj]

c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(69): note: see declaration of 'v8' (compiling source file ..\src
SHM.cc) c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(36): error C4430: missing type specifier - int assume d. Note: C++ does not support default-int (compiling source file ..\src\SHM.cc) [C:\Users\aldiablo\code\node-test\node_ modules\shm\build\shm.vcxproj] c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(36): error C2143: syntax error: missing ',' before '& ' (compiling source file ..\src\SHM.cc) [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users
aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(12): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modules\shm \build\shm.vcxproj] ..\src\SHM.cc(13): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8::H andleScope' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope' c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(14): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(14): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo \code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(17): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHMobject.cc(16): error C2664: 'v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate *,v8::Func tionCallback,v8::Localv8::Value,v8::Localv8::Signature,int,v8::ConstructorBehavior)': cannot convert argument 1 fro m 'v8::Localv8::Value (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\aldiablo\code\node-test\node_modules\shm\b uild\shm.vcxproj] ..\src\SHMobject.cc(16): note: There is no context in which this conversion is possible ..\src\SHM.cc(16): warning C4996: 'node::Encode': was declared deprecated [C:\Users\aldiablo\code\node-test\node_module s\shm\build\shm.vcxproj] ..\src\SHMobject.cc(17): error C2039: 'NewSymbol': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\no de_modules\shm\build\shm.vcxproj] C:\Users\aldiablo.node-gyp\7.4.0\include\node\node.h(314): note: see declaration of 'node::Encode' c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users
aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(17): error C3861: 'NewSymbol': identifier not found [C:\Users\aldiablo\code\node-test\node_modules
shm\build\shm.vcxproj] ..\src\SHM.cc(29): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modules\shm \build\shm.vcxproj] ..\src\SHMobject.cc(20): error C2660: 'v8::PersistentBase<T>::New': function does not take 1 arguments [C:\Users\aldiab lo\code\node-test\node_modules\shm\build\shm.vcxproj] with [ T=v8::Function ] ..\src\SHM.cc(31): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8::H andleScope' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(23): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:
Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope' ..\src\SHMobject.cc(23): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modul es\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHMobject.cc(24): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8::HandleScope'..\src\SHM.cc(33): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_m odules\shm\build\shm.vcxproj]

c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope' ..\src\SHM.cc(33): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo \code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(34): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(34): error C2227: left of '->ToString' must point to class/struct/union/generic type [C:\Users\aldiablo\c ode\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(27): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm
build\shm.vcxproj] ..\src\SHM.cc(34): error C2512: 'v8::String::Utf8Value::Utf8Value': no appropriate default constructor available [C:\Us ers\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(27): error C2227: left of '->IsUndefined' must point to class/struct/union/generic type [C:\Users\a ldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(37): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(37): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo \code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(27): error C2227: left of '->NumberValue' must point to class/struct/union/generic type [C:\Users\a ldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(38): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHMobject.cc(28): error C2039: 'Wrap': is not a member of 'SHMobject'..\src\SHM.cc(38): error C2227: left of '-> Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm. vcxproj]

c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(25): note: see declaration of 'SHMobject' ..\src\SHMobject.cc(28): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm
build\shm.vcxproj] ..\src\SHM.cc(41): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(28): error C2228: left of '.This' must have class/struct/union [C:\Users\aldiablo\code\node-test\no de_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHMobject.cc(28): note: type is 'unknown-type' ..\src\SHM.cc(41): error C2660: 'v8::Number::New': function does not take 1 arguments [C:\Users\aldiablo\code\node-test \node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(30): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm
build\shm.vcxproj] ..\src\SHM.cc(44): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users
aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(30): error C2228: left of '.This' must have class/struct/union [C:\Users\aldiablo\code\node-test\no de_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(30): note: type is 'unknown-type' ..\src\SHM.cc(44): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modules\shm \build\shm.vcxproj] ..\src\SHMobject.cc(33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:
Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHMobject.cc(33): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modul es\shm\build\shm.vcxproj] ..\src\SHM.cc(46): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8::H andleScope'..\src\SHMobject.cc(34): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declare d in class 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj]

c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope'c:\u sers\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope'

c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope'c:\users\aldiablo .node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope'

..\src\SHM.cc(48): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHMobject.cc(37): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm
build\shm.vcxproj] ..\src\SHM.cc(48): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo \code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(49): error C2065: 'args': undeclared identifier..\src\SHMobject.cc(38): error C2819: type 'v8::Persistent <v8::Function,v8::NonCopyablePersistentTraits<T>>' does not have an overloaded member 'operator ->' [C:\Users\aldiablo
code\node-test\node_modules\shm\build\shm.vcxproj] with [ T=v8::Function ]

..\src\SHM.cc(49): error C2227: left of '->Int32Value' must point to class/struct/union/generic typec:\users\aldiablo\c ode\node-test\node_modules\shm\src\SHMobject.h(35): note: see declaration of 'v8::Persistent<v8::Function,v8::NonCopyab lePersistentTraits<T>>' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] with [ T=v8::Function ]

..\src\SHMobject.cc(38): note: did you intend to use '.' instead? ..\src\SHM.cc(50): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(50): error C2227: left of '->Int32Value' must point to class/struct/union/generic type..\src\SHMobject.cc (38): error C2039: 'NewInstance': is not a member of 'v8::Persistent<v8::Function,v8::NonCopyablePersistentTraits<T>>' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] with [ T=v8::Function ]

c:\users\aldiablo\code\node-test\node_modules\shm\src\SHMobject.h(35): note: see declaration of 'v8::Persistent<v8::F unction,v8::NonCopyablePersistentTraits<T>>' with [ T=v8::Function ] ..\src\SHM.cc(57): error C2882: 'Buffer': illegal use of namespace identifier in expression [C:\Users\aldiablo\code\nod e-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(57): error C2065: 'slowBuffer': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm
build\shm.vcxproj] ..\src\SHMobject.cc(40): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\n ode_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(57): error C2661: 'node::Buffer::New': no overloaded function takes 1 arguments [C:\Users\aldiablo\code\n ode-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(58): error C2065: 'slowBuffer': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm
build\shm.vcxproj] ..\src\SHM.cc(60): error C2039: 'GetCurrent': is not a member of 'v8::Context' [C:\Users\aldiablo\code\node-test\node_m odules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(7186): note: see declaration of 'v8::Context' ..\src\SHM.cc(60): error C3861: 'GetCurrent': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\b uild\shm.vcxproj] ..\src\SHM.cc(60): error C2227: left of '->Global' must point to class/struct/union/generic type [C:\Users\aldiablo\cod e\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(60): note: type is 'unknown-type' ..\src\SHM.cc(61): error C2039: 'New': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_modules\s hm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(61): error C3861: 'New': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\build\sh m.vcxproj] ..\src\SHM.cc(61): error C2672: 'v8::Localv8::Function::Cast': no matching overloaded function found [C:\Users\aldiab lo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(62): error C2065: 'slowBuffer': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm
build\shm.vcxproj] ..\src\SHM.cc(62): error C2227: left of '->handle_' must point to class/struct/union/generic type [C:\Users\aldiablo\co de\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(62): note: type is 'unknown-type' ..\src\SHM.cc(62): error C2660: 'v8::Integer::New': function does not take 1 arguments [C:\Users\aldiablo\code\node-tes t\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(64): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(67): error C2039: 'NewSymbol': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_mod ules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(67): error C3861: 'NewSymbol': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\bu ild\shm.vcxproj] ..\src\SHM.cc(68): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(63): warning C4996: 'v8::Function::NewInstance': was declared deprecated [C:\Users\aldiablo\code\node-tes t\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(3288): note: see declaration of 'v8::Function::NewInstance' ..\src\SHM.cc(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users
aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(72): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modules\shm \build\shm.vcxproj] ..\src\SHM.cc(74): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8::H andleScope' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope' c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(75): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(75): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo \code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(78): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(78): error C2660: 'v8::Number::New': function does not take 1 arguments [C:\Users\aldiablo\code\node-test \node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users
aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(81): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modules\shm \build\shm.vcxproj] ..\src\SHM.cc(83): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8::H andleScope' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope' c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(84): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(84): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo \code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(87): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(87): error C2660: 'v8::Number::New': function does not take 1 arguments [C:\Users\aldiablo\code\node-test \node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users
aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(90): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modules\shm \build\shm.vcxproj] ..\src\SHM.cc(92): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8::H andleScope' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope' c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(93): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(93): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiablo \code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(95): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(98): error C2039: 'New': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_modules\s hm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(98): error C3861: 'New': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\build\sh m.vcxproj] ..\src\SHM.cc(97): error C3861: 'ThrowException': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\s hm\build\shm.vcxproj] ..\src\SHM.cc(103): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build \shm.vcxproj] ..\src\SHM.cc(103): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiabl o\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(104): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build \shm.vcxproj] ..\src\SHM.cc(104): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiabl o\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(107): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_m odules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(107): error C2660: 'v8::Number::New': function does not take 1 arguments [C:\Users\aldiablo\code\node-tes t\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users \aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(110): error C2143: syntax error: missing ',' before '&' [C:\Users\aldiablo\code\node-test\node_modules\sh m\build\shm.vcxproj] ..\src\SHM.cc(112): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in class 'v8:: HandleScope' [C:\Users\aldiablo\code\node-test\node_modules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(882): note: see declaration of 'v8::HandleScope::HandleScope' c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(113): error C2065: 'args': undeclared identifier [C:\Users\aldiablo\code\node-test\node_modules\shm\build \shm.vcxproj] ..\src\SHM.cc(113): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\aldiabl o\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(116): error C2039: 'Close': is not a member of 'v8::HandleScope' [C:\Users\aldiablo\code\node-test\node_m odules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(866): note: see declaration of 'v8::HandleScope' ..\src\SHM.cc(116): error C2660: 'v8::Number::New': function does not take 1 arguments [C:\Users\aldiablo\code\node-tes t\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(124): error C2039: 'NewSymbol': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(124): error C3861: 'NewSymbol': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\b uild\shm.vcxproj] ..\src\SHM.cc(125): error C2664: 'v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate *,v8::FunctionC allback,v8::Localv8::Value,v8::Localv8::Signature,int,v8::ConstructorBehavior)': cannot convert argument 1 from 'v8 ::Localv8::Value (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(125): note: There is no context in which this conversion is possible ..\src\SHM.cc(125): error C2227: left of '->GetFunction' must point to class/struct/union/generic type [C:\Users\aldiab lo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(127): error C2039: 'NewSymbol': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(127): error C3861: 'NewSymbol': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\b uild\shm.vcxproj] ..\src\SHM.cc(128): error C2664: 'v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate *,v8::FunctionC allback,v8::Localv8::Value,v8::Localv8::Signature,int,v8::ConstructorBehavior)': cannot convert argument 1 from 'v8 ::Localv8::Value (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(128): note: There is no context in which this conversion is possible ..\src\SHM.cc(128): error C2227: left of '->GetFunction' must point to class/struct/union/generic type [C:\Users\aldiab lo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(129): error C2039: 'NewSymbol': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(129): error C3861: 'NewSymbol': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\b uild\shm.vcxproj] ..\src\SHM.cc(130): error C2664: 'v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate *,v8::FunctionC allback,v8::Localv8::Value,v8::Localv8::Signature,int,v8::ConstructorBehavior)': cannot convert argument 1 from 'v8 ::Localv8::Value (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(130): note: There is no context in which this conversion is possible ..\src\SHM.cc(130): error C2227: left of '->GetFunction' must point to class/struct/union/generic type [C:\Users\aldiab lo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(131): error C2039: 'NewSymbol': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(131): error C3861: 'NewSymbol': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\b uild\shm.vcxproj] ..\src\SHM.cc(132): error C2664: 'v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate *,v8::FunctionC allback,v8::Localv8::Value,v8::Localv8::Signature,int,v8::ConstructorBehavior)': cannot convert argument 1 from 'v8 ::Localv8::Value (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(132): note: There is no context in which this conversion is possible ..\src\SHM.cc(132): error C2227: left of '->GetFunction' must point to class/struct/union/generic type [C:\Users\aldiab lo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(133): error C2039: 'NewSymbol': is not a member of 'v8::String' [C:\Users\aldiablo\code\node-test\node_mo dules\shm\build\shm.vcxproj] c:\users\aldiablo.node-gyp\7.4.0\include\node\v8.h(2093): note: see declaration of 'v8::String' ..\src\SHM.cc(133): error C3861: 'NewSymbol': identifier not found [C:\Users\aldiablo\code\node-test\node_modules\shm\b uild\shm.vcxproj] ..\src\SHM.cc(134): error C2664: 'v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate *,v8::FunctionC allback,v8::Localv8::Value,v8::Localv8::Signature,int,v8::ConstructorBehavior)': cannot convert argument 1 from 'v8 ::Localv8::Value (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\aldiablo\code\node-test\node_modules\shm\build
shm.vcxproj] ..\src\SHM.cc(134): note: There is no context in which this conversion is possible ..\src\SHM.cc(134): error C2227: left of '->GetFunction' must point to class/struct/union/generic type [C:\Users\aldiab lo\code\node-test\node_modules\shm\build\shm.vcxproj] ..\src\SHM.cc(134): fatal error C1003: error count exceeds 100; stopping compilation [C:\Users\aldiablo\code\node-test
node_modules\shm\build\shm.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Windows_NT 10.0.14393 gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\aldiablo\code\node-test\node_modules\shm gyp ERR! node -v v7.4.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\aldiablo\code\node-test\package.json' npm WARN node-test No description npm WARN node-test No repository field. npm WARN node-test No README data npm WARN node-test No license field. npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "shm" npm ERR! node v7.4.0 npm ERR! npm v4.0.5 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! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the shm 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 information on how to open an issue for this project with: npm ERR! npm bugs shm npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls shm npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\aldiablo\code\node-test\npm-debug.log

What am I missing here? Is this not the correct build?

a1diablo avatar Apr 12 '17 09:04 a1diablo

Hi @a1diablo , I'm also facing the same issue. Did you got the answer for this?

Surekha95 avatar Jul 27 '21 13:07 Surekha95