Skip to content

node not found #1685

Closed
Closed

Description

@CristoAMH
  • 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.

Activity

  1. code-asher commented on May 19, 2020

    @code-asher
    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)
  2. code-asher commented on May 19, 2020

    @code-asher
    Member

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

  3. code-asher commented on Jun 8, 2022

    @code-asher
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions