-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Global installs fail #10
Comments
I found out that using
at least sets the user to |
I believe that's a node-gyp/npm thing: nodejs/node-gyp#454 You'll see a similar warning if you e.g install on a mac. On my mac (
Also, I'm pretty sure the install will succeed since it's a warning and not an actual error. Did pm2-web actually install for you? |
I tried this myself in a Docker container and the install does fail. Looks like something to do with the mdsn2 module
|
Here's the full error I get
|
Further update: The install doesn't fail entirely, just the installation of the mdns2 dependency fails:
Looking up that error I found achingbrain/pm2-web#31 mdns requires you have libavahi-compat-libdnssd-dev installed So, after I installed it:
I tied again (I'm not a fan of the npm spinner ;):
And it works! Looks like you just need that missing package and you're all good. |
@chorrell It looks like that doesn't work on
|
I would raise that here: https://github.com/Wizcorp/node_mdns/issues Node 0.12.0 has a newer version of v8 and going by the errors, it looks like they are hitting something related to that. |
And I get the same v8 related errors on iojs:1.1.0 too:
etc. |
I'm just commenting from the peanut gallery here (sorry). I took a quick look at https://github.com/Wizcorp/node_mdns and it looks like they're recommending people switch back to https://github.com/agnat/node_mdns, i.e. switching from the So I guess the fix for anyone reading this is that |
Oh, interesting. Yeah, worth someone raising with pm2-web I guess (rather than an issue about v8 compat) |
Closing this out. The main issue was a missing dependency (install libavahi-compat-libdnssd-dev) and the module requires the version of v8 that comes with 0.10.* |
I've got a similar error while trying to run It worked when I switched from Node 4.0 to Node 0.11 |
@lucaspottersky Seems like 4.0.0 support is an open issue? balderdashy/sails#3211 |
I've had this same issue trying to install npm packages which rely on node-gyp, from inside a docker container. Specifically, I haven't been able to install node-sharp or node-mbtiles. Here's what I did to fix it (from inside my container):
I was surprised to have to use
|
When I run the container
node:0.10
usingand then inside if the container run
I get an error message by node-gyp telling me that the user is
undefined
:How do I fix that?
The text was updated successfully, but these errors were encountered: