1, installed nodejs
Nodejs go directly to the official website to download the installation package - then in cmd window inside the input node -v can be detected nodejs is installed successfully in the global environment, if the version number is displayed, indicating nodejs successful installation.
2, the switching mirror npm
In any input paths cmd "npm
install -g cnpm --registry=https://registry.npm.taobao.org”
3, npm global installation vue
Enter "cnpm in any path cmd
install vue-cli -g ", installation vue. After the success can enter vue out information.
4, npm project dependent component mounting
cmd into the root directory of the front vue project, enter the command "cnpm
install ", according to the dependencies will download a good front-end projects related components, the presence of node_modules project directory folder.
5, npm compilation
Vue root directory cmd into the front end of the project, enter the command "npm run dev" can be run locally
Note where the error:
This error npm ERR!
[email protected] install: `node install.js`
Installation with the following command:
npm install
chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver