Installation of Vue scaffolding (nanny-level tutorial)
Article directory
1. Download vscode
2.node download
1.Open cmd
node -v
npm -v
2. Create new files node_global and node_cache in the download directory of node
Modify file permissions
3. Install Taobao image
npm install -g cnpm --registry=https://registry.npm.taobao.org
5. Installation of Vue scaffolding
npm install -g @vue/cli
Test whether the installation is successful
Vue -v
At this point, the Vue scaffolding has been installed. But there are two concepts that need to be distinguished:
the Vue version we are learning is
2
. The housing contracting team is also constantly undergoing transformation, and it is now 4.5.12
6. Create a Vue project
Under the newly created file, open it with cmd
vue create my_project
Select vue2
and the project is created successfully.
7. Project operation
Drag the project directly into vscode and
enter npm run serve in the terminal
At this point, the Vue scaffolding is completed.