-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
Tell the author that this fails on your system: node-pre-gyp install --fallback-to-build #256
Comments
Can you try checking out node-sqlite3 from github master and then edit these lines: https://github.com/mapbox/node-sqlite3/blob/master/binding.gyp#L5-L6. Change the |
Hey, this is what I did:
I got this result: npm ERR! sqlite3@2.2.0 install: npm ERR! System Linux 3.11.0-12-generic My system has two commands: "nodejs" and "node-gyp" If I recreate the symlink, delete node_modules, and try "npm install ./node-sqlite3 |
closing, this is only solvable by fixing your node to truly be |
SpringMeyer, that means it's broken on all Ubuntu installs. That doesn't seem like a quality solution. |
@MichaelJCole - can you test this:
This may fix out of the box on systems with only |
nevermind, that works but is not going to be viable since the approach I took to try to fix debian with nodejs completely breaks windows (mapbox/node-pre-gyp#45 (comment)). this is really frustrating. It looks like attempts to fix this in npm did not go anywhere: npm/npm#4116. /cc @kapouer - help: do you have any ideas here? |
Install "nodejs-legacy" package ? |
Is that the recommended approach? |
Well, distributions have their drawbacks... but have other advantages as well.
Note that debian packages must depend on Right now the idea is to separate npm-installed modules from modules installed as debian packages. If i install node-sqlite3 debian package, it won't be found by npm as an already-installed dependency (if versions match) and this is an expected behavior. |
Okay, thanks, so closing this again with no action taken in node-pre-gyp or node-sqlite3. Anyone, therefore, that does |
Same issue here: http://pastebin.com/aEGbG1x2
I had recently switched from
Any idea? |
Same problem as nomadster |
Same problem. Not with sqlite but with opencv. node-pre-gyp is the issue
|
@SlightlyCyborg that error contains nothing helpful. please create a new issue with a full error report otherwise I cannot help you. |
I fixed it. On mac brew does not install cmake for some packages. node-pre-gyp needs cmake. All I had to do was install cmake |
Same probleme, nodejs 5.0.0 on Debian 8 |
Put |
Where is npmrc ? |
In debian it is read-only in /usr/share/npm/npmrc, root read-write in /etc/npmrc, or user read-write in ~/.npmrc |
I got none of these. |
@angristan create ~/.npmrc ! |
What do I have to rebuild ? |
@angristan aren't we talking about sqlite3 ? |
@kapouer Yep, but I have to rebuild it with/from what ? |
Let's say you're on debian and want to install node-sqlite3 npm module, but you don't want node-pre-gyp downloading binaries.
Of course, you will need gcc toolchain and sqlite3 dev dependencies installed. |
That's what I have done before : no problem during the installation. |
Started getting this error on RHEL7 while installing node-inspector |
same problem ..still unsolved |
Hi, I'm getting this error in Linux Mint 16 (an Ubuntu 13.10 derivative).
/usr/bin/env: node: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! sqlite3@2.2.0 install:
node-pre-gyp install --fallback-to-build
npm ERR!
sh "-c" "node-pre-gyp install --fallback-to-build"
failed with 127npm ERR!
npm ERR! Failed at the sqlite3@2.2.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-12-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/michael/scm/furtheryet.org/ghost
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/michael/scm/furtheryet.org/ghost/npm-debug.log
npm ERR! not ok code 0
The problem is that sqlite is looking for a binary "node". In Ubuntu/Mint, this program is a HAM radio program. The repo maintainers renamed node to nodejs.
This is a possible workaround for non-HAM radio people:
sudo ln -s /usr/bin/nodejs /usr/bin/node
The text was updated successfully, but these errors were encountered: