Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Error when installing node-deflate #3

Closed
aaronshaf opened this issue Sep 29, 2011 · 7 comments
Closed

Error when installing node-deflate #3

aaronshaf opened this issue Sep 29, 2011 · 7 comments
Assignees
Labels

Comments

@aaronshaf
Copy link

Having trouble installing node-deflate as a dependency of bogart:


npm ERR! error installing deflate@1.0.2 Error: deflate@1.0.2 install: ./build.sh
npm ERR! error installing deflate@1.0.2 sh "-c" "./build.sh" failed with 1
npm ERR! error installing deflate@1.0.2 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing deflate@1.0.2 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing deflate@1.0.2 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! deflate@1.0.2 install: ./build.sh
npm ERR! sh "-c" "./build.sh" failed with 1
npm ERR!
npm ERR! Failed at the deflate@1.0.2 install script.
npm ERR! This is most likely a problem with the deflate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./build.sh
npm ERR! You can get their info via:
npm ERR! npm owner ls deflate
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.35.4-rscloud
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /var/www/shaf/node_modules/bogart
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.30
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/shaf/node_modules/bogart/npm-debug.log
npm not ok


Any ideas?

@nrstott
Copy link

nrstott commented Sep 29, 2011

I just experienced that too. I may take deflate out as a dependency for now. There are obviously some problems with it.

@jahewson
Copy link
Owner

Can you download the source and run ./build.sh and let me know the output

@aaronshaf
Copy link
Author

Output:

https://gist.github.com/1254064

@jahewson
Copy link
Owner

The error no such environment: default is apparently a problem with node-waf, try this workaround.

If that doesn't work can you let me know the output of node --version and node-waf --version

@ghost ghost assigned jahewson Sep 30, 2011
@aaronshaf
Copy link
Author

I was able to get deflate to install without any errors using the latest ndoe.js (0.5.8). I also have node-waf 1.5.16. However, when running I get:

Error: Cannot find module './deflate-bindings'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/var/www/shaf/node_modules/bogart/node_modules/deflate/lib/deflate.js:1:77)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)

@jahewson
Copy link
Owner

jahewson commented Oct 1, 2011

Looks like the C++ bindings either didn't get built, or got built into the wrong folder somehow. As the install was successful it looks like they probably got built - can you find the file deflate-bindings anywhere on your system?

Alternatively, can you find the file deflate-bindings.node?

@jahewson
Copy link
Owner

jahewson commented Nov 5, 2011

Conclusion: the problem seems to be node-waf being different from the version of node installed.

@jahewson jahewson closed this as completed Nov 5, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants