How to Install NodeJS onto VS Code Server?
So I just created a fresh CodeServer using Linode and wanted to create a program that needs NodeJS. But Im not sure how to do that since CodeServer is on the cloud and Im using Linode. I already have NodeJS on my mac so I find it wierd its not working. Whenever I type something like "npm instaill -y" on the VS Codeserver's terminal I get "root@[ip]:/root# npm init -y
bash: npm: command not found"
13 Replies
are you running code-server standalone with no docker or anything like that?
if yes, you can just install nodejs onto the server
I recommend http://nvm.sh (ubuntu/debian's node pkgs are LTS)
This is really difficult
This is my linode serevr
Without leaking too much info
I dont have a docker all the linode server has is the codeserver link
Is there a YouTube video I could watch that can guide be more easily?
just run the following on the Linode server:
basically, you don't install node on code-server, you install node on the machine that hosts code-server
Where is the Linode server to type the script in?
sorry?
just open a terminal via ssh and run those commands
or even run them from your vscode terminal
Im not sure how to do that
Im really new to Linode, sorry for the late reply I was busy
Is there a YouTube video or article that can guide me
ok wait I ran the script onto vscode sevrer and it says
do what it says
do
nano ~/.bashrc
and put the following text in it:
btw you use CTRL+X to close nanoAwesome it works
Thank you
You may close, thank you @Phorcys
alright
you can use /resolve for future issues
i'm doing it for this one