search

Home  >  Q&A  >  body text

node.js - 在搭建vue.js时,安装淘宝npm镜像cnpm,报错,如何解决呢


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

伊谢尔伦伊谢尔伦2875 days ago536

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 16:23:36

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

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

    reply
    0
  • 大家讲道理

    大家讲道理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;

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:23:36

    Use windows, I respect you as a man.

    reply
    0
  • Cancelreply