Ubuntu sunucusunda Discord botu "node not found" hatası veriyor

Merhabalar, Ubuntu serverda Discord botunu çalıştırmayı denedim fakat hata ile karşılaştım.
Node command not found olmasi gerek. sudo apt install nodejs komutu ile indirebilirsin.

Ustteki komut isini goruyorsa bu kisma gerek yok.
Alternatif olarak NVM yani Node Version Manager da kullanabilirsin:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash calistirirsin. Sonra nvm install node yapip Node indirebilirsin.
nvm: command not found gibi bir hata veriyorsa da .bashrc dosyana:
Kod:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
eklersin.
 
Node command not found olmasi gerek. sudo apt install nodejs komutu ile indirebilirsin.

Ustteki komut isini goruyorsa bu kisma gerek yok.
Alternatif olarak NVM yani Node Version Manager da kullanabilirsin:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash calistirirsin. Sonra nvm install node yapip Node indirebilirsin.
nvm: command not found gibi bir hata veriyorsa da .bashrc dosyana:
Kod:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
eklersin.

Bashrc dosyasına nasıl ekleyeceğim hocam
 
Bashrc dosyasına nasıl ekleyeceğim hocam
Ben paket yoneticisi kullanmaniz taraftariyim ama tercih sizin.

Ustteki ise yaramadi mi? Bashrc dosyasina sunucuya baglandiktan sonra nano .bashrc komutuyla acip dosyanin sonuna su sekilde ekleyeceksiniz:
Screenshot_2021-12-23_21-26-34.png
 
[CODE title="hata"]root@ubuntu:~/pesa# sudo apt install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nodejs[/CODE]
 
[CODE title="hata"]root@ubuntu:~/pesa# sudo apt install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nodejs[/CODE]
curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash - sudo apt-get install -y nodejs
 

Technopat Haberler

Yeni konular

Geri
Yukarı