我在我的VPS服务器上运行Ubuntu18,我正在尝试运行NodeJS,然而,发生了这种情况:
seth@vps186104:~$ nodejs -v
Command 'nodejs' not found, but can be installed with:
sudo apt install nodejs
seth@vps186104:~$ sudo apt install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (8.10.0~dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
seth@vps186104:~$
它说要安装包来运行nodejs,但是试图安装nodejs它说它已经安装了这是怎么回事?
发布于 2018-06-01 06:29:42
尝试运行:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
或者如果你想要节点10。
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
https://stackoverflow.com/questions/50633382
复制相似问题