curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install vue@next
npm init vue@latest
Need to install the following packages:
create-vue@latest
Ok to proceed? (y)
Vue.js - The Progressive JavaScript Framework
✔ Project name: … test-vue3-ts-router-2
✔ Add TypeScript? … No / [Yes]
✔ Add JSX Support? … [No] / Yes
✔ Add Vue Router for Single Page Application development? … No / [Yes]
✔ Add Pinia for state management? … No / [Yes]
✔ Add Vitest for Unit Testing? … [No] / Yes
✔ Add Cypress for both Unit and End-to-End testing? … [No] / Yes
✔ Add ESLint for code quality? … No / [Yes]
✔ Add Prettier for code formatting? … No / [Yes]
Scaffolding project in /Volumes/SSD_Data - Data/Previous Content/projects/vue3/test-vue3-ts-router-2...
Done. Now run:
cd test-vue3-ts-router-2
npm install
npm run lint
npm run dev
The default host now listens to 127.0.0.1 so you only get localhost exposure. It was changed because it is a security concern to expose your file system to external addresses by default.
Expose to external use
npm run dev -- --host