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

dat installation fails on prebuild --download #374

Closed
sboysel opened this Issue Aug 5, 2015 · 11 comments

Comments

Projects
None yet
6 participants
@sboysel

sboysel commented Aug 5, 2015

Hello all,

Following up an issue I mentioned in IRC. prebuild --download fails when installing dat from either sudo npm install dat -g or sudo npm install -g in the cloned repo.

> leveldown@1.4.0 install /usr/lib/node_modules/dat/node_modules/dat-core/node_modules/leveldown
> prebuild --download

prebuild http request GET https://github.com/level/leveldown/releases/download/v1.4.0/leveldown-v1.4.0-node-v14-linux-x64.tar.gz
prebuild WARN install EACCES, open '/root/.npm/_prebuilds/https-github.com-level-leveldown-releases-download-v1.4.0-leveldown-v1.4.0-node-v14-linux-x64.tar.gz.15808-25ec8c26.tmp'
prebuild info install Could not install prebuild. Falling back to compilation
prebuild ERR! build EACCES, mkdir '/root/.node-gyp/0.12.7/deps/http_parser'

Some system specs:

> uname -a
Linux archbook 4.1.4-1-ARCH #1 SMP PREEMPT Mon Aug 3 21:30:37 UTC 2015 x86_64 GNU/Linux

> node --version
v0.12.7

> npm --version
2.13.2

I'm a complete nodejs novice but I'm willing to help troubleshoot in any way I can.

@mafintosh

This comment has been minimized.

Show comment
Hide comment
@mafintosh

mafintosh Aug 5, 2015

Member

Are you running this as root?

Member

mafintosh commented Aug 5, 2015

Are you running this as root?

@sboysel

This comment has been minimized.

Show comment
Hide comment
@sboysel

sboysel commented Aug 5, 2015

@mafintosh yes.

@dela3499

This comment has been minimized.

Show comment
Hide comment
@dela3499

dela3499 Aug 8, 2015

I seem to have run into this issue as well.

dela3499 commented Aug 8, 2015

I seem to have run into this issue as well.

@miishke

This comment has been minimized.

Show comment
Hide comment
@miishke

miishke Aug 9, 2015

The same issue here.

miishke commented Aug 9, 2015

The same issue here.

@mafintosh

This comment has been minimized.

Show comment
Hide comment
@mafintosh

mafintosh Aug 9, 2015

Member

could you try running this with --unsafe-perm to see if that makes a difference?

Member

mafintosh commented Aug 9, 2015

could you try running this with --unsafe-perm to see if that makes a difference?

@miishke

This comment has been minimized.

Show comment
Hide comment
@miishke

miishke Aug 10, 2015

@mafintosh It worked! Too tired to test thoroughly, but repo init works.

miishke commented Aug 10, 2015

@mafintosh It worked! Too tired to test thoroughly, but repo init works.

@sboysel

This comment has been minimized.

Show comment
Hide comment
@sboysel

sboysel Aug 10, 2015

Works for me as well. Thanks @mafintosh !

sboysel commented Aug 10, 2015

Works for me as well. Thanks @mafintosh !

@sboysel sboysel closed this Aug 10, 2015

@karissa karissa reopened this Aug 10, 2015

@miishke

This comment has been minimized.

Show comment
Hide comment
@miishke

miishke Aug 10, 2015

I see this has been reopened. If it helps, I had the same issue on Linux first, and then today on OS X. Both have been resolved with --unsafe-perm.

miishke commented Aug 10, 2015

I see this has been reopened. If it helps, I had the same issue on Linux first, and then today on OS X. Both have been resolved with --unsafe-perm.

@karissa

This comment has been minimized.

Show comment
Hide comment
@karissa

karissa Aug 10, 2015

Collaborator

Thanks @miishke ! I just re-opened it so people can find it if they're also having trouble. Going to add it to the readme, too.

Collaborator

karissa commented Aug 10, 2015

Thanks @miishke ! I just re-opened it so people can find it if they're also having trouble. Going to add it to the readme, too.

@karissa

This comment has been minimized.

Show comment
Hide comment
@karissa

karissa Aug 11, 2015

Collaborator

OK I added this to the readme

Collaborator

karissa commented Aug 11, 2015

OK I added this to the readme

@jekrb

This comment has been minimized.

Show comment
Hide comment
@jekrb

jekrb Aug 11, 2015

Fails to install on io.js -v3.0.0 even with --unsafe-perm

I think it may be the same issue as Level/leveldown#211

jekrb commented Aug 11, 2015

Fails to install on io.js -v3.0.0 even with --unsafe-perm

I think it may be the same issue as Level/leveldown#211

@karissa karissa closed this Feb 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment