简体   繁体   中英

nodejs latest version on my pc is not the latest

i was going to start use reactjs when but i had this:

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:

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

any help please?

To install the desired version of nodejs you can use the NodeSource Node.js Binary Distributions .

For Node.js v17.x:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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