The original address: blog.csdn.net/zhouzhiweng…

Step 1: Install Node.js

Vue installation depends on Node.js, so make sure you have Node.js installed on your computer. Enter the CMD editor and run the node -v command. Try to use a newer version of Node; otherwise, the later installation will prompt you that the node version is too early. Go to the node website and reinstall the next version of Node. If the Node is successfully installed, the following information is displayed:

Step 2: Taobao CNPM installation

 

 npm install -g cnpm --registry=https://registry.npm.taobao.org
Copy the code

Node installation is not covered here. Once you have the Node installed, you can start the vUE installation. Here to mention taobao mirror, with Taobao mirror CNPM to replace the installation of NPM, the speed will be much faster. Taobao mirror recommended website: npm.taobao.org/. After success, you can also view the version:

 

Step 3: Install the Vue framework

 

cnpm install -g vue-cli
Copy the code

 

$CNPM install -g vue-cli $NPM install -g vue-cli $NPM install -g vue-cli

The VUE has been installed successfully.

 

Create a VUE project

Here we use the command line tool on the vue website. Vue.js provides an official command-line tool for quickly building large, single-page applications. The tool provides an out-of-the-box build tool configuration that brings a modern front-end development process. One minute to start projects with hot reloads, save time static checking, and build configurations available for production:

NPM install -g CNPM --registry= HTTPS://registry.npm.taobao.orgCNPM install -g vue-cli CNPM install -g vue-cli CNPM install -g vue-cli Webpack d:\nodeworkspace\nodeone # Switch to project path CD D :\nodeworkspace\nodeone # install project dependency file CNPM install # start project CNPM run devCopy the code

Then my browser pops up the home page after the successful construction, happy.