VsCode远程 + Ubuntu + Vue
Preface
故事要从很远很远的地方说起,所以就长话短说。
主要因为要写Vue,但是自己的电脑总有点问题,会出现莫名其妙的错误,想想算了,直接在Ubuntu的服务器上开始写,依稀记得VsCode可以远程连接到服务器上,然后写代码什么的,所以把这个过程记录成文章。
- Ubuntu 18.04
- node v8.10.0
- npm 3.5.2
- Vue 3.6.0
1.install Node.js
不推荐这种方法,因为版本太老了
# update the apt-get first
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-ge