Closed ingorichter closed 10 years ago
I was able to install it with these versions:
$ node-gyp --version # v0.13.0 (update: now I'm not sure where this version comes from...) $ node --version # v0.10.29 $ npm --version # 1.4.4
weak 0.3.3 (optional dependency) wasn't installed:
Traceback (most recent call last):
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.8.11
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/millette/sjs/node_modules/scraperjs/node_modules/phantom/node_modules/dnode/node_modules/weak
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN optional dep failed, continuing weak@0.3.3
That bug was already reported upstream: https://github.com/TooTallNate/node-weak/issues/30
UPDATE: grunt test fails (17 times, it passes 28 tests) on all DynamicScrapper tests, complaining about the missing "weak" dependency.
You don't remember how you got node-gyp
0.13.0? I have 1.0.1
installed and would love to try the version that you have installed...
Between tries, I installed node-gyp 1.0.1 globally, so I had an earlier version before. But looking at my log near the bottom, we see: "gyp ERR! node-gyp -v v0.12.2" (another version).
Weird... I have installed it globally too, but my version is 1.0.1. I'm confused.
Did you solved this issue?
No and I am more confused now since I have tried it on another machine that has the same version installed (1.0.1) and there it works. I need to have a look at it tonight when I'm back home.
Okay, I got this one resolved. It seems that node-gyp
uses any installed version of gyp
instead of it's own copy. Once I removed gyp
with pip uninstall gyp
everything worked fine for me.
That worked for me too, but I had to "aptitude uninstall gyp". After that, I was able to npm install scraperjs. Thanks for the tip.
It seems that the required gyp version doesn't support that option.
gyp_main.py: error: no such option: --no-parallel gyp ERR! configure error gyp ERR! stack Error:
gyp
failed with exit code: 2 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12) gyp ERR! System Darwin 13.3.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/scraperjs/node_modules/phantom/node_modules/dnode/node_modules/weak gyp ERR! node -v v0.10.30 gyp ERR! node-gyp -v v0.13.1 gyp ERR! not ok