Home > Web Front-end > Vue.js > body text

How to install vue.js from the command line

王林
Release: 2020-11-18 14:44:16
Original
2525 people have browsed it

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
Copy after login

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

Use cnpm to install vue:

cnpm install vue
Copy after login

vue-cli is the official command line tool.

Install vue-cli:

Use command in cmd:

cnpm install --global vue-cli
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!