PHP中文网2017-04-17 16:23:36
You typed it wrong, bro. registry
前面是两个-
$ npm install -g cnpm --registry=https://registry.npm.taobao.org
大家讲道理2017-04-17 16:23:36
After my own research and reconfiguration,
The steps are as follows:
1.npm install cnpm -g;
2.cnpm install -g vue-cli//It is installed under the c drive by default and creates a global installation
3.vue init webpack my -project//Since you have installed vue globally, this step can be performed under the disk you want to create,
4.cd my-project//Enter the project you defined;
5.cnpm install// Build the installation package;
6.npm run dev//In this step, dev means the development environment, it can also be the production environment;