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

LspInstall docker failed #4

Open
yriveiro opened this issue Jan 30, 2021 · 2 comments
Open

LspInstall docker failed #4

yriveiro opened this issue Jan 30, 2021 · 2 comments

Comments

@yriveiro
Copy link

Running :LspInstall docker fails in my machine because is requiring sudo permissions.

OS: Ubuntu 20.10

Screenshot 2021-01-30 at 13 11 29

I would assume that all nodejs related language servers will fail as well.

@anott03
Copy link
Owner

anott03 commented Jan 30, 2021

Yes. If one nodejs language server requires sudo, they all will. I am working on switching to the method that the lspconfig extension used before deprecating lspinstall, which will install packages to a local directory (most likely ~/.local/share/nvim/lspinstall/node_modules or something similar). In the meantime, you could copy the command that LspInstall is attempting to run, and replace bash at the end with sudo bash. If you were to do this, the command for Docker would turn into

curl https://raw.githubusercontent.com/anott03/nvim-lspinstall-scripts/master/Linux/docker.sh | sudo bash

@anott03
Copy link
Owner

anott03 commented Apr 17, 2021

@yriveiro I believe as of #8 this issue should be resolved.

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