首页 > 问答 > 正文
npm没有安装镜像文件能安装bower,grunt等模块吗?
PHP中文网2017-04-17 14:22:40
"镜像文件"是个什么鬼?
直接npm install bower --options 就可以啊 ,要啥自行车
npm install bower --options
阿神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 # 清空缓存
然后就可以正常安装各种模块了。