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

Getting EACCESS and ELIFECYCLE errors trying to install on Ubuntu 18.04 #6

Closed
chrisguida opened this issue Sep 18, 2019 · 8 comments
Closed
Assignees
Labels

Comments

@chrisguida
Copy link

See Automattic/node-canvas#788 (comment)

shesek added a commit that referenced this issue Oct 6, 2019
@shesek
Copy link
Collaborator

shesek commented Oct 6, 2019

Thanks for the report. I updated to node-canvas v2 and published filebazaar v0.2.7. Can you check if this fixes the issue?

@shesek shesek self-assigned this Oct 6, 2019
@shesek shesek added the bug label Oct 6, 2019
@chrisguida
Copy link
Author

chrisguida commented Oct 8, 2019

Still got the issue, although i think it may have been a permission issue on my end, I'm not sure.

I made myself owner of some npm-related folders, for instance:

sudo chown -R `whoami` /usr/local/lib/node_modules

...and that seems to have fixed the issue.

@chrisguida
Copy link
Author

Is there any way I can try installing the old version to see if it works with my setup? Sorry, I'm kind of a newb at npm.

@chrisguida
Copy link
Author

chrisguida commented Oct 8, 2019

Well, I tried npm install filebazaar@0.2.6 and now I'm having permission issues again :(

Now it's having trouble creating a symlink.

@chrisguida
Copy link
Author

Okay, weird, next I tried

sudo npm install -g filebazaar

Which gave me the symlink permission issue and the ELIFECYCLE error again.

Tried npm install -g filebazaar again, just to see what the error was, and boom! No error.

I'm so confused.

@chrisguida
Copy link
Author

Oh, I think I know what happened. I sudo rm'd the symlink, so now it doesn't need permission to overwrite the old symlink I think.

@chrisguida
Copy link
Author

chrisguida commented Oct 8, 2019

Okay never mind. I see what's happening.

I run npm install -g filebazaar@0.2.6 and it gives me a "can't create symlink" EACCESS error, but not the ELIFECYCLE error. Perhaps this is because canvas is already installed properly from my earlier install of filebazaar@0.2.7?

Then I run sudo npm install -g filebazaar@0.2.6 and I get an ELIFECYCLE error, but the symlink gets created. It doesn't appear to be pointing to anything, though, which makes it appear red in ls -al.

Then I run npm install -g filebazaar@0.2.6 once again, and I get the ELIFECYCLE error.

Then I run npm install -g filebazaar to install 0.2.7, and the installation completes successfully.

So, yes, your update fixed the problem, but I also have some weird symlink creation problems. Is it best practice to chown /usr/local/bin to a non-root user?

@shesek
Copy link
Collaborator

shesek commented Oct 10, 2019

What I would recommend is configuring npm to install global packages inside your home directory and adding that to your PATH. See instructions here. This typically resolves these pesky npm permission issues, which can indeed be a pain with how npm ships by default :(

@shesek shesek closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants