public:computer:vuejs3_on_wsl2

Vue.js 3 on WSL2

$ sudo apt update
$ sudo apt upgrade -y

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash  # 안됨;;

$ sudo apt update && sudo apt install curl -y
$ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash 
$ source ~/.profile 
$ nvm ls-remote 
$ nvm install v16  # 버전
$ node --version

$ npm install vue

$ yarn global add @vue/cli
# or
$npm install -g @vue/cli

# vue.js 3로 업그레이드
$ vue upgrade --next

npm:

$ npm init vite-app <project-name>
$ cd <project-name>
$ npm install
$ npm run dev

Yarn:

$ yarn create vite-app <project-name>
$ cd <project-name>
$ yarn
$ yarn dev


$ code .

  • public/computer/vuejs3_on_wsl2.txt
  • Last modified: 2022/08/11 16:16
  • by alex