akdubya / rbytes Goto Github PK
View Code? Open in Web Editor NEWGenerates cryptographically secure random byte sequences in node.js
License: MIT License
Generates cryptographically secure random byte sequences in node.js
License: MIT License
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 405, in build_impl
bld.compile()
File "/usr/local/bin/../lib/node/wafadmin/Build.py", line 268, in compile
os.chdir(self.bldnode.abspath())
OSError: [Errno 2] No such file or directory: '/home/lex/dev/projects/rbytes/build'
C:\xampp\htdocs\mpgs_sockjs>npm install rbytes
npm http GET https://registry.npmjs.org/rbytes
npm http 200 https://registry.npmjs.org/rbytes
[email protected] install C:\xampp\htdocs\mpgs_sockjs\node_modules\rbytes
node-waf configure build
'node-waf' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! error installing [email protected]
npm ERR! [email protected] install: node-waf configure build
npm ERR! cmd "/c" "node-waf configure build"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the rbytes package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls rbytes
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "rbytes"
npm ERR! cwd C:\xampp\htdocs\mpgs_sockjs
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.1
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node-waf configure build
npm ERR! message cmd "/c" "node-waf configure build"
failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\xampp\htdocs\mpgs_sockjs\npm-debug.log
npm not ok
C:\xampp\htdocs\mpgs_sockjs>
npm install rbytes
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info fetch http://registry.npmjs.org/rbytes/-/rbytes-0.0.1.tgz
npm info calculating sha1 /home/alfred/local/lib/node/.npm/.cache/rbytes/0.0.1/package.tgz
npm info shasum d23e25a68e7c3b8da0614671b2a724252828fd38
npm info preinstall [email protected]
npm info install [email protected]
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /home/alfred/local
'configure' finished successfully (0.528s)
Waf: Entering directory /home/alfred/local/lib/node/.npm/rbytes/0.0.1/package/build' [1/2] cxx: src/binding.cc -> build/default/src/binding_1.o ../src/binding.cc: In function ‘v8::Handle<v8::Value> RandBytes(const v8::Arguments&)’: ../src/binding.cc:33: error: ‘Data’ is not a member of ‘node::Buffer’ ../src/binding.cc:34: error: ‘Length’ is not a member of ‘node::Buffer’ ../src/binding.cc: In function ‘v8::Handle<v8::Value> BufToHex(const v8::Arguments&)’: ../src/binding.cc:56: error: ‘Data’ is not a member of ‘node::Buffer’ ../src/binding.cc:57: error: ‘Length’ is not a member of ‘node::Buffer’ ../src/binding.cc: In function ‘v8::Handle<v8::Value> HexToBuf(const v8::Arguments&)’: ../src/binding.cc:91: error: ‘Data’ is not a member of ‘node::Buffer’ ../src/binding.cc:92: error: ‘Length’ is not a member of ‘node::Buffer’ Waf: Leaving directory
/home/alfred/local/lib/node/.npm/rbytes/0.0.1/package/build'
Build failed: -> task failed (err #1):
{task: cxx binding.cc -> binding_1.o}
npm info [email protected] Failed to exec install script
npm ERR! install failed Error: [email protected] install: node-waf configure build
npm ERR! install failed sh
failed with 1
npm ERR! install failed at ChildProcess. (/home/alfred/local/lib/node/.npm/npm/0.2.13-3/package/lib/utils/exec.js:25:18)
npm ERR! install failed at ChildProcess.emit (events:27:15)
npm ERR! install failed at ChildProcess.onexit (child_process:168:12)
npm ERR! install failed at node.js:773:9
npm info install failed rollback
npm info uninstall [ '[email protected]' ]
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info auto-deactive not symlink
npm info postuninstall [email protected]
npm info uninstall [email protected] complete
npm info install failed rolled back
npm ERR! Error: [email protected] install: node-waf configure build
npm ERR! sh
failed with 1
npm ERR! at ChildProcess. (/home/alfred/local/lib/node/.npm/npm/0.2.13-3/package/lib/utils/exec.js:25:18)
npm ERR! at ChildProcess.emit (events:27:15)
npm ERR! at ChildProcess.onexit (child_process:168:12)
npm ERR! at node.js:773:9
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the rbytes package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls rbytes
npm ERR! There may be additional logging output above.
npm not ok
Every time I clone a repo with this module in it - I get this error on start on a script. I have to npm install rbytes
to fix it. I use a bunch of other node modules and rbytes is the only one that does this.
Complete error message:
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module './build/default/binding'
at Function._resolveFilename (module.js:322:11)
at Function._load (module.js:267:25)
at require (module.js:351:19)
at Object.<anonymous> (/home/user/repo/node/node_modules/rbytes/index.js:1:77)
at Module._compile (module.js:407:26)
at Object..js (module.js:413:10)
at Module.load (module.js:339:31)
at Function._load (module.js:298:12)
at require (module.js:351:19)
at Object.<anonymous> (/home/user/repo/node/session.js:4:14)```
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.