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 fails #1

Closed
alfredwesterveld opened this issue Jan 6, 2011 · 1 comment
Closed

npm fails #1

alfredwesterveld opened this issue Jan 6, 2011 · 1 comment

Comments

@alfredwesterveld
Copy link

npm install rbytes
npm info it worked if it ends with ok
npm info using npm@0.2.13-3
npm info using node@v0.2.5
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 rbytes@0.0.1
npm info install rbytes@0.0.1
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 rbytes@0.0.1 Failed to exec install script
npm ERR! install failed Error: rbytes@0.0.1 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 [ 'rbytes@0.0.1' ]
npm info preuninstall rbytes@0.0.1
npm info uninstall rbytes@0.0.1
npm info auto-deactive not symlink
npm info postuninstall rbytes@0.0.1
npm info uninstall rbytes@0.0.1 complete
npm info install failed rolled back
npm ERR! Error: rbytes@0.0.1 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 rbytes@0.0.1 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

@akdubya
Copy link
Owner

akdubya commented Jan 7, 2011

rbytes requires node 0.3.x because of the new buffer api. I'll make a note of this in the readme.

This issue was closed.
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

2 participants