B,
I got tired of looking for your e-mail on the mailing list, so I’ll just put the list in reply. This is the danger of e-mailing me support questions directly–not something I like too much.
B,
I got tired of looking for your e-mail on the mailing list, so I’ll just put the list in reply. This is the danger of e-mailing me support questions directly–not something I like too much.
Excellent thanks for the quick response!
Hi all - I am running into the same problem - but the workaround does not seem to fix it. It gets me past the “bad python” call - but does not compile. Any insights? Thanks
root@beaglebone:~# npm install bonescript --save
npm http GET https://registry.npmjs.org/bonescript
npm http 304 https://registry.npmjs.org/bonescript
bonescript@0.2.3 preinstall /home/root/node_modules/bonescript
node-gyp clean || (exit 0); node-gyp configure build
gyp ERR! Completion callback never invoked!
gyp ERR! System Linux 3.8.13
gyp ERR! command “node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “build”
gyp ERR! cwd /home/root/node_modules/bonescript
gyp ERR! node -v v0.8.22
gyp ERR! node-gyp -v v0.8.5
gyp ERR! This is a bug in node-gyp
.
gyp ERR! Please file an Issue:
gyp ERR! https://github.com/TooTallNate/node-gyp/issues
npm ERR! bonescript@0.2.3 preinstall: node-gyp clean || (exit 0); node-gyp configure build
npm ERR! sh "-c" "node-gyp clean || (exit 0); node-gyp configure build"
failed with 6
npm ERR!
npm ERR! Failed at the bonescript@0.2.3 preinstall script.
npm ERR! This is most likely a problem with the bonescript package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp clean || (exit 0); node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls bonescript
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.13
npm ERR! command “/usr/bin/node” “/usr/bin/npm” “install” “bonescript” “–save”
npm ERR! cwd /home/root
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/root/npm-debug.log
npm ERR! not ok code 0
And I figured out my error…
if you type:
beaglebone# nano /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configsre.js
search for semver.lt and replace
if (semver.gte(version, ‘2.5.0’) && semver.lt(version, ‘3.0.0’)) {
getNodeDir()
} else {
failPythonVersion(version)
}
with
// if (semver.gte(version, ‘2.5.0’) && semver.lt(version, ‘3.0.0’)) {
getNodeDir()
// } else {
// failPythonVersion(version)
// }
Then a quick
beaglebone# node -pe “require(‘bonescript’).getPlatform().bonescript”
returns 0.2.3
I know that this is an old thread now, but I had the same problems, followed this solution and now I am getting an error about node-gyp failing to import module filecmp. Any ideas?
Thanks, Josh
Not sure why that, but I've found a newer work-around to the original
problem that avoids editing configure.js:
TERM=dumb npm install -g bonescript