Skip to content

node not found #1685

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

Closed
CristoAMH opened this issue May 19, 2020 · 7 comments
Closed

node not found #1685

CristoAMH opened this issue May 19, 2020 · 7 comments

Comments

@CristoAMH
Copy link

  • Remote OS: Ubuntu 18.04
  • code-server --version: v3.3.1

if I execute the code-server script like "./code-server" it works perfectly but after placing it on /usr/local/bin/ it give me this error at the time of run "code-server" on my terminal:
/usr/local/bin/code-server: 20: exec: /usr/local/bin/../lib/node: not found

I have node installed but don't know what to do.

@code-asher
Copy link
Member

The script uses a relative path to the Node binary that's packaged with code-server so it can't be moved. There are two things you could do:

  • Add code-server's bin directory to your path (example: export PATH="$PATH:/path/to/code-server/bin")
  • Use a symlink (example: ln -s /path/to/code-server/code-server /usr/local/bin/code-server)

@code-asher
Copy link
Member

Another option is to install the deb which will handle everything for you.

@TanveerHussain188
Copy link

i am facing the same issue please help

@TanveerHussain188
Copy link

The script uses a relative path to the Node binary that's packaged with code-server so it can't be moved. There are two things you could do:

  • Add code-server's bin directory to your path (example: export PATH="$PATH:/path/to/code-server/bin")
  • Use a symlink (example: ln -s /path/to/code-server/code-server /usr/local/bin/code-server)

please explain simply

@TanveerHussain188
Copy link

Uploading Screenshot_20220608-124844.png…

@TanveerHussain188
Copy link

please help bro

@code-asher
Copy link
Member

@tanveer188 Please open a new issue describing how you installed code-server, how you are running it, and your error message. Thanks!

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