First, download and install vscode
Download: https://code.visualstudio.com/
install a little ...
Second, the configuration vscode
1. Set Chinese, Ctrl + Alt + P Select Configure Display language, choose Chinese Simplified installation after the restart VSCode
2.vscode terminal powershell changed from the default git bash
File -> Preferences -> Configure, search shell: Window, click on setting.json edit
the new configuration, provided that the note has been installed to the Git, press Ctrl + ~ switching to call up the terminal. If you delete and re-add or powershell terminal
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
Third, the installation nodejs
Download: https: //nodejs.org/en/
installation is complete check nodejs version: node -v
disk, create a folder to look for specialized storage behind the need to use npm package cache, such as D: \, respectively, under nodejs create a cache folder and global
npm global cache configuration cache (execute command in cmd)
npm config set prefix "D:\nodejs\global"
npm config set cache "D:\nodejs\cache"
Mirroring the domestic setting, accelerate npm package
npm config set registry=http://registry.npm.taobao.org
Update package npm
npm -v
npm install npm -g
Path system environment variable added global path, such as D: \ nodejs \ global
version Installation 3.0 vue-cli, after installation in the corresponding packet can see the global file
npm install -g @vue/cli
Then remember to restart the computer under.
Fourth, solve common problems
1.npm run的时候出现报错:Module build failed (from ./node_modules/sass-loader/lib/loader.js):
问题原因是node-sass没安装好,需要重新安装,安装过程中有一步要从github.com下载东西,国内有时候github打不开,需要梯子!!