Build fails on my system with NPM #18

Closed
deathgaze opened this Issue Mar 4, 2013 · 10 comments

Comments

Projects
None yet
5 participants

C:\Users\deathgaze>npm install bigint
npm http GET https://registry.npmjs.org/bigint
npm http 304 https://registry.npmjs.org/bigint

bigint@0.3.9 install C:\Users\deathgaze\node_modules\bigint
node-waf configure build

'node-waf' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! bigint@0.3.9 install: node-waf configure build
npm ERR! cmd "/c" "node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the bigint@0.3.9 install script.
npm ERR! This is most likely a problem with the bigint 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 bigint
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "bigint"
npm ERR! cwd C:\Users\deathgaze
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.11
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\deathgaze\npm-debug.log
npm ERR! not ok code 0

Contributor

freeeve commented Mar 4, 2013

Indeed. This package was written with node-waf (node <= 0.6 I think). I guess it needs to be updated to use the new build tool, node-gyp: https://github.com/TooTallNate/node-gyp#the-bindinggyp-file

Contributor

freeeve commented Mar 4, 2013

I submitted a pull request if you want to try it on windows.

Contributor

freeeve commented Mar 4, 2013

Spoke too soon... give me a minute here.

Contributor

freeeve commented Mar 4, 2013

Ok, now it works for mac/linux. What's the name of the gmp lib file in windows?

You're asking the wrong dude! Never used it before I NPMed your code!

Contributor

freeeve commented Mar 4, 2013

Well, you need to have GMP installed on your box before it will work. It might be easier said than done on windows.

Same problem here. Please, update the npm with the new build tool: node-gyp

Contributor

freeeve commented Mar 21, 2013

That's what my pull request does. Haven't heard from the author yet.

Until the author updates the code here's a workaround I think worked for me to build manually.

cd apphomedirectory
git clone https://github.com/substack/node-bigint.git node_modules/bigint
cd node_modules/bigint
npm install
Owner

substack commented Apr 18, 2013

Fixed in 0.4.0 but there are still issues on node 0.10.

@substack substack closed this Apr 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment