Home >Web Front-end >Vue.js >How to install vue.js from the command line

How to install vue.js from the command line

王林
王林Original
2020-11-18 14:44:162583browse

How to install vue.js from the command line: First execute the [npm install -g cnpm --registry=mirror] command in cmd; then continue to execute the [cnmp install vue] command.

How to install vue.js from the command line

Since npm is very slow in China, Taobao mirror is used for installation here:

(Learning video sharing: javascript video Tutorial)

Enter the following command in cmd:

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

After completion, you can use cnpm instead of npm to operate.

Use cnpm to install vue:

cnpm install vue

vue-cli is the official command line tool.

Install vue-cli:

Use command in cmd:

cnpm install --global vue-cli

Related recommendations: vue.js tutorial

The above is the detailed content of How to install vue.js from the command line. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to annotate vueNext article:How to annotate vue