mscdex / base91.js Goto Github PK
View Code? Open in Web Editor NEWbasE91 encoding/decoding for node.js and browsers
License: Other
basE91 encoding/decoding for node.js and browsers
License: Other
Dear Brian,
could you be so kind and make (or tell me how to make) it working without Node?
I want it as standalone JS file to inject and use right away against array of bytes. Current implementation seems to be dependent on Node (which I neither use nor plan to install) and throws errors like ReferenceError: process is not defined
and ReferenceError: hasNode is not defined
.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.