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

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

阅读 3.4k
3 个回答

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

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

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

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

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题