Install Vue.js
Last Updated: August 1, 2021
First you have to create new project in your working folder
You can use the command line to create new project
If you have not install Vue in your computer you can run the following command in your terminal
npm install vue
Run the following command in your terminal
> vue create codekayak
Then you will be prompted to select some options and you can select them as you need
Then Vue CLI will start downloading the files and it will create scaffolding project for you to start code
> cd codekayak
> npm run serve
This is the output of the command line when you create new project
Dev:vue Niro$ vue create codekayak
Vue CLI v4.3.1
┌─────────────────────────────────────────────┐
│ │
│ New version available 4.3.1 → 4.5.4 │
│ Run yarn global add @vue/cli to update! │
│ │
└─────────────────────────────────────────────┘
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Linter
? Pick a linter / formatter config: Prettier
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? No
Vue CLI v4.3.1
.......
setting up Git hooks
done
.......
added 1247 packages from 929 contributors and audited 1247 packages in 77.831s
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
🚀 Invoking generators...
📦 Installing additional dependencies...
added 59 packages from 40 contributors and audited 1307 packages in 15.457s
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
⚓ Running completion hooks...
📄 Generating README.md...
🎉 Successfully created project codekayak.
👉 Get started with the following commands:
$ cd codekayak
$ npm run serve
Dev:vue Niro$