Node.js Командная строка не выполняется - PullRequest
0 голосов
/ 20 октября 2019

У меня есть сервер Ubuntu 18.04, на который я хочу установить Node.js.

Я выполняю следующие команды:


root@ubuntu:~# curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
root@ubuntu:~# apt-get install nodejs -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs is already the newest version (10.16.3-1nodesource1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


root@ubuntu node -v

Command 'node' not found, but can be installed with:

apt install nodejs


root@ubuntu:~# which node
root@ubuntu:~# which nodejs

Как я могу решить эту проблему?

...