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

Install script failing with npm/node-gyp (nodejs 0.10.35, Ubuntu 14.04 64-bit) #126

Closed
Dids opened this issue Jan 12, 2015 · 4 comments
Closed

Comments

@Dids
Copy link

Dids commented Jan 12, 2015

After upgrading NodeJS to the latest (0.10.35), I was unable to run the install script due to node-gyp permission errors, even after running as root. I don't know what the root cause of this problem is, but it seems to be affecting quite a lot of people: nodejs/node-gyp#454

This can't really be a permission problem, as this is fresh install and I tried creating/recreating the node-gyp directory itself and setting full read/write permissions on it, so just a heads up for anyone else running in to this.

The fix, for me at least, was to modify the countly.install.sh script (line 73) by appending '-unsafe-perm' to the npm line, like so: npm install time --unsafe-perm

@ar2rsawseen
Copy link
Member

Interesting, it seems to be building correctly on Travis.
Either way --unsafe-perm seems to allow execute npm install with root permission, so will try to add them just in case

@Dids Dids closed this as completed Jan 20, 2015
@Dids
Copy link
Author

Dids commented Jan 20, 2015

Or wait, do you want this to stay open to remind of the --unsafe-perm flag?

@Dids Dids reopened this Jan 20, 2015
@ar2rsawseen
Copy link
Member

No worries, will close it once we publish the new core with the fixes ;)

@ar2rsawseen
Copy link
Member

Added in b657d76

This issue was closed.
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

2 participants