如何在Ubuntu18.04系統安裝node.js
如何在Ubuntu18.04系統安裝node.js
Node.js是一(yi)個可以讓JavaScript程式不再(zai)與(yu)瀏覽器綁定,并(bing)獨(du)立執(zhi)行于后端(duan)的框架。在(zai)Ubuntu18.04系統中,如何安(an)裝node.js?本文(wen)將(jiang)針對此問題進行詳細說(shuo)明。
1.首先更新軟件列表
sudo apt-get update
2.然后(hou)獲取nodejs安裝(zhuang)源及安裝(zhuang)的相關設置
curl -sL //deb.nodesource.com/setup_10.x | sudo -E bash –
3.安裝(zhuang)node.js
sudo apt-get install -y nodejs
4.確(que)認node.js版本
node -v
安裝完成

