base91.js icon indicating copy to clipboard operation
base91.js copied to clipboard

Unable to install on windows 10

Open Deca opened this issue 5 years ago • 0 comments

I'm trying to install base91 module on windows but I get this error I've already tried multiple npm version with nvm (tried 14.11.0 13.9.0 12.19.0 11.6.0 10.22.1) without luck Any suggestion?

C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91>if not defined npm_config_node_gyp (node "C:\Users\User\AppData\Roaming\nvm\v14.11.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\User\AppData\Roaming\nvm\v14.11.0\node_modules\npm\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. binding.cc win_delay_load_hook.cc c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(23): error C2664: 'v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot convert argument 1 from 'v8::Localv8::Value' to 'const v8::String: :Utf8Value &' [C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91\build\base91encdec.vcxproj] c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(23): note: Reason: cannot convert from 'v8::Localv8::Value' to 'const v8::String::Utf8Value' c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(23): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(68): error C2664: 'v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot convert argument 1 from 'v8::Localv8::Value' to 'const v8::String: :Utf8Value &' [C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91\build\base91encdec.vcxproj] c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(68): note: Reason: cannot convert from 'v8::Localv8::Value' to 'const v8::String::Utf8Value' c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(68): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(85): error C2065: 'Handle': undeclared identifier [C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91\build\base91encdec.vcxproj] c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(85): error C2275: 'v8::Object': illegal use of this type as an expression [C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91\build\base91encdec.vcxp roj] c:\users\user\appdata\local\node-gyp\cache\14.11.0\include\node\v8.h(3664): note: see declaration of 'v8::Object' c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(85): error C2065: 'target': undeclared identifier [C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91\build\base91encdec.vcxproj] c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(85): error C2182: 'init': illegal use of type 'void' [C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91\build\base91encdec.vcxproj] c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(85): error C2448: 'init': function-style initializer appears to be a function definition [C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91\build\ba se91encdec.vcxproj] c:\users\user\documents\www\node-ruuvitag\node_modules\base91\src\binding.cc(92): warning C4312: 'type cast': conversion from 'int' to 'node::addon_register_func' of greater size [C:\Users\User\Documents\www\node-ruuvitag\node_modules\ba se91\build\base91encdec.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\User\AppData\Roaming\nvm\v14.11.0\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\User\AppData\Roaming\nvm\v14.11.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\User\Documents\www\node-ruuvitag\node_modules\base91 gyp ERR! node -v v14.11.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN [email protected] license should be a valid SPDX license expression npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install 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! C:\Users\User\AppData\Roaming\npm-cache_logs\2020-10-13T11_11_12_325Z-debug.log

Deca avatar Oct 13 '20 11:10 Deca