search

Home  >  Q&A  >  body text

node.js - npm没有安装镜像文件能安装bower,grunt等模块吗!

npm没有安装镜像文件能安装bower,grunt等模块吗?

PHPzPHPz2867 days ago592

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:22:40

    What the hell is an "image file"?

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:22:40

    Just npm install bower --options and that’s it. What kind of bike do you want

    reply
    0
  • 阿神

    阿神2017-04-17 14:22:40

    It depends on your network. If it is a Chinese network, I still recommend Taobao mirror

    npm set registry https://registry.npm.taobao.org # 注册模块镜像
    npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像
    npm cache clean # 清空缓存

    Then you can install various modules normally.

    reply
    0
  • Cancelreply