我电脑上的nodejs最新版本不是最新的



我本来打算开始使用reactjs,但我有这个:

create-react-app myapp
You are running Node 9.11.2.
Create React App requires Node 14 or higher. 
Please update your version of Node.

我试图通过运行来更新我的节点js

sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4).
The following package was automatically installed and is no longer required:
libllvm6.0
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我的电脑是32位扩展5635z我的操作系统是lubuntu

请帮忙吗?

要安装所需版本的nodejs,可以使用NodeSource Node.js二进制分布。

对于Node.js v17.x:

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
sudo apt-get install -y nodejs

相关内容

  • 没有找到相关文章

最新更新