Installation configuration vue development environment

Reference: https://www.cnblogs.com/zhuji/p/11546678.html

First install nodejs, from the official website of the installation package, it will be installed together npm

Whether the test can be performed nodeJS and npm:

node -v

asl -v

Then start the installation vue environment:

npm install –g vue

npm install –g @vue/cli

After the installation, testing :( Note that this is a capital V)

vue -V

able to pass:

vue init webpack projectName

Initiate a project, and then:

cd projectName

npm install

Restore the referenced file, then:

npm run dev

Run the project, run will see the address.

 

npm package source may be unstable over the wall is not difficult to use, can be installed Taobao Source:

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

After installation test:

cnpm -v

After the npm should be replaced cnpm with it.

 

The above command can be executed in vscode terminal (actually the powershell) years.

In vscode where you can also install ESLint, Vetur, Live Server to aid development.

Guess you like

Origin www.cnblogs.com/xwgli/p/12274267.html