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.
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!