-
Notifications
You must be signed in to change notification settings - Fork 80
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
node-pre-gyp issue #52
Comments
@springmeyer this is one of the |
hrm. I am unable to replicate with node v0.10.40, npm v1.4.28 when running:
The above works fine. Confirming: you are able to replicate with those commands but with different node and npm versions? If so, which ones and which exact command replicates this? |
I just tried with v0.10.40, I got the same issue. However, if I install without the -g parameter, it works but in this case I have to use the full path to launch tessera (node /home/node_modules/tessera/bin/tessera.js) and when it starts I have the issue with the protocol (Error: Invalid tilesource protocol: mbtiles), which is logical since I am unable to install the protocol with npm -g (same error with node-pre-gyp). |
@flp-gpc what was the command you used to trigger that? |
My npm version is 2.11.3, I used nvm to try several versions of node. Everything is working fine and I can install any node modules other than those from /or linked to mapbox. My command was simply: I also tried with a github clone, then just "npm install -g" from the directory, I got the same node-pre-gyp issue. The strange thing, as explained, is that I am able to install this node-pre-gyp by itself (npm install -g node-pre-gyp), and it works fine, but I still have the "command not found" issue when trying to install other modules. |
Any idea about this issue ? I tried to install the new version on another server on which a previous version of tessera was running perfectly, and now I got the same issue and everything is broken, I am not able to launch the service anymore :( npm WARN deprecated [email protected]: renamed to d3-queue
npm ERR! Linux 3.14.32-xxxx-grs-ipv6-64 npm ERR! Error: EACCES, mkdir '/root/.npm/node-pre-gyp/0.6.26/package' |
For that, try clearing your npm cache as a temporary solution: |
I did but unfortunately it does not change anything, I got the same error |
I'm getting notified by this ticket but about all I have to add is "don't run as root" as npm is known to not work well this way. If some bug replicates when running as a normal user then to participate in this thread I would need the exact commands to replicate. Otherwise I'm not going to risk wasting time trying to replicate with partial info. Scanning the above all I see is partial info and not anything I can surely replicate with. |
The issue is that, no matter the privileges or the option set by npm (sudo npm -g), node-pre-gyp tries to pre-install as normal user without -g option. My workaround for a similar case was as ugly as this:
Then my stuff was working on node 4.x and 6.x. |
Hi,
I have issues when trying to install tessera or any tilelive module with something called "node-pre-gyp". It seems this is something new, I already installed tessera on multiple servers in the past without problems. Now, when I try to install, for instance the module mbtiles, I received the following error:
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
sh: node-pre-gyp: command not found
npm ERR! Linux 3.14.32-xxxx-grs-ipv6-64
npm ERR! argv "/root/.nvm/v0.12.7/bin/node" "/root/.nvm/v0.12.7/bin/npm" "install" "-g" "mbtiles"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install:
node-pre-gyp install --fallback-to-build
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
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! Please include the following file with any support request:
npm ERR! /home/npm-debug.log
I have the same issue when trying to install any node linked to mapbox. I tried with different node versions, I got the same message.
I also manually installed node-pre-gyp (npm install -g node-pre-gyp), it works and I can run the program (node-pre-gyp -v > v0.6.26) but I still got the same error (sh: node-pre-gyp: command not found) when I try to install tessera or other mapbox modules.
Any idea ? Thanks
The text was updated successfully, but these errors were encountered: