iT邦幫忙

1

[筆記 Day-4]NodeJS-(Ubuntu)更改node js 版本方法

KUI 2018-09-12 10:36:265659 瀏覽
  • 分享至 

  • twitterImage
  •  

因為最近有遇到版本不支援的情況,需要換版號,
找了許多方法,記錄下自己最方便記錄的方式。
下面連接為 nodejs版號,找一個自己要的版本,

例: setup_10.x
版號查詢

sudo apt update
sudo apt install nodejs
sudo apt install npm
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
nano nodesource_setup.sh  // 查看nodesource_setup.sh內容是否引入(可不打)
sudo bash nodesource_setup.sh
sudo apt install nodejs
// 確認版號更新了沒?
nodejs -v 

這次的更新好像有點短?

上一篇 NodeJS-型別DataType


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言