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

Problem with node-gyp on install #84

Open
yannlossouarn opened this issue Feb 9, 2014 · 0 comments
Open

Problem with node-gyp on install #84

yannlossouarn opened this issue Feb 9, 2014 · 0 comments

Comments

@yannlossouarn
Copy link

Hello,

I get an error Cannot find module '../build/default/canvas', and when I follow the steps described in the Requirements the "node-gyp configure" command does not work as expected... :/

Firs issue, I have to make
sudo nodejs /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js configure in order to avoid a "command not found" error feedback.
Second issue (and hopefully, last ;) ), when launching this command I get the following error :

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/yann/bombayCrushed/Bombay-Crushed/node_modules/canvas/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/yann/.node-gyp/0.6.19/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/yann/.node-gyp/0.6.19',
gyp info spawn args   '-Dmodule_root_dir=/home/yann/bombayCrushed/Bombay-Crushed/node_modules/canvas',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
/bin/sh: 1: node: not found
gyp: Call to 'node -p -e "require('path').relative('.', require('path').dirname(require.resolve('nan')))"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:415:16)
gyp ERR! stack     at ChildProcess.emit (events.js:70:17)
gyp ERR! stack     at maybeExit (child_process.js:362:16)
gyp ERR! stack     at Process.onexit (child_process.js:398:5)
gyp ERR! System Linux 3.2.53-xenU-8869-x86_64
gyp ERR! command "nodejs" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "configure"
gyp ERR! cwd /home/yann/bombayCrushed/Bombay-Crushed/node_modules/canvas
gyp ERR! node -v v0.6.19
gyp ERR! node-gyp -v v0.9.6
gyp ERR! not ok 

Any idea appreciated... Thanks !

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

1 participant