簡體   English   中英

我電腦上的nodejs最新版本不是最新的

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

我打算開始使用 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 位 extensa 5635z 我的操作系統是 lubuntu

請問有什么幫助嗎?

要安裝所需版本的 nodejs,您可以使用NodeSource Node.js Binary Distributions

對於 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