Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bash: node: command not found #3435

Answered by nooobcoder
YueMiyuki asked this question in Q&A
Discussion options

Synology docker code-server hosted, node v12 install on synology but terminal in code-server throw error 'bash: node: command not found' when executing command node -v

You must be logged in to vote

Are you on Linux (Deb or Arch) or Windows? Please specify.
If you are on linux, add the following entry in .bashrc or .profile
PATH=/usr/bin/node:$PATH

Also, logout the current user and log back in to reflect the changes.

Replies: 2 comments 5 replies

Comment options

Hmm... Hard to tell without more details but could it be that node is installed but not available in PATH?

You must be logged in to vote
0 replies
Comment options

Are you on Linux (Deb or Arch) or Windows? Please specify.
If you are on linux, add the following entry in .bashrc or .profile
PATH=/usr/bin/node:$PATH

Also, logout the current user and log back in to reflect the changes.

You must be logged in to vote
5 replies
Comment options

@miracl-cutelemon173 did this solve your problem?

Comment options

yep, now there's another isseue
Deno: Command not found
but why?

Comment options

@miracl-cutelemon173 whatever you install externally, you need to add that to path
Add the path to deno by editing the .bashrc or the .profile or the .zshrc file as per your config

export DENO_INSTALL="/$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"

Also do not forget to close and reopen the terminall session.
Also you can close the discussion if your query is specifically resolved.

Thanks

Comment options

yep, now there's another isseue
Deno: Command not found
but why?

@miracl-cutelemon173 that happens because your external programs are not recognized by the system (in simple language).
By adding the path, you create a link to be recognized by the host OS.
It is quite similar to adding environment variables on Windows.

Also, this has nothing to do with code-server, these are OS level things, be rest assured of this.

Comment options

@miracl-cutelemon173 did this help you out?
Please mark the discussion as answered, if you are done!

Answer selected by jsjoeio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /