node.js - 在搭建vue.js时,安装淘宝npm镜像cnpm,报错,如何解决呢
伊谢尔伦
伊谢尔伦 2017-04-17 16:21:36
0
3
513


请问下报错,该如何解决呢?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
洪涛

You typed it wrong, bro. registry 前面是两个-

$ npm install -g cnpm --registry=https://registry.npm.taobao.org
大家讲道理

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;

Ty80

Use windows, I respect you as a man.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template