简体   繁体   English

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

[英]nodejs latest version on my pc is not the latest

i was going to start use reactjs when but i had this:我打算开始使用 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.

i tried to update my node js by runing:我试图通过运行更新我的节点 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.

My pc is 32 bit extensa 5635z my os is lubuntu我的电脑是 32 位 extensa 5635z 我的操作系统是 lubuntu

any help please?请问有什么帮助吗?

To install the desired version of nodejs you can use the NodeSource Node.js Binary Distributions .要安装所需版本的 nodejs,您可以使用NodeSource Node.js Binary Distributions

For Node.js v17.x:对于 Node.js v17.x:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM