Vue beginning of the chapter Configuration Record

Environment Centos7, first download nodejs npm and compressed, the two together after decompression into the bin directory, using the ln -s command npm inside the node and connected to the lower soft / usr / bin / directory, then exit this directory, node -v view the version and check the installation was successful.

Just unzip into the bin directory again, enter the command

Elevation install g cnpm --registry = https: // registry.npm.taobao.org

Taobao installation image, vue tutorial learn this method rookie tutorial. (Flexible connections may also look after the installation is complete)

Installation webpack packer command (installed over the same connection may be soft look, you see their own situation)

cnpm install -g webpack

Next, install vue-cli, type the command

cnpm install --global vue-cli

The finished installation may have soft connection,

Finally, you can create a project, create a new folder to store vue project, enter in this folder

vue init webpack MyVueProject

Then that is the way to enter, you encounter a Use ESLint when the election no, or else you may encounter inexplicable error

Finally, let you download something, choose the last manual, he called npm what you enter, the npm into our cnpm, the back of the copy, then almost, or download npm will be very slow. Well configure the environment, the project also created a record of early learning vue continue to write the next chapter.

Guess you like

Origin www.cnblogs.com/Wszhurui/p/11954972.html