安裝NetCore 2.0 + Node.js + npm
- 下載 Node.js 套件清單 (若無額外下載清單則會安裝到很舊的版本,且會有各種奇奇怪怪的錯誤跑出來)
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh sudo bash nodesource_setup.sh sudo bash nodesource_setup.sh
- 安裝 Node.js + npm
sudo apt-get install nodejs
- 下載 NetCore 套件清單
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
- 開始安裝 NetCore 2.0
sudo apt-get update sudo apt-get install dotnet-sdk-2.0.2
- 等他跑完就可以囉