搜索

首页  >  问答  >  正文

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

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

PHPzPHPz2865 天前590

全部回复(3)我来回复

  • PHP中文网

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

    "镜像文件"是个什么鬼?

    回复
    0
  • PHP中文网

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

    直接npm install bower --options 就可以啊 ,要啥自行车

    回复
    0
  • 阿神

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

    看你网络了,如果是天朝网络,还是推荐淘宝镜像

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

    然后就可以正常安装各种模块了。

    回复
    0
  • 取消回复