1 Star 1 Fork 0

Super 9du / renrenfast-vue-issue-resolved

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

renrenfast-vue-issue-resolved

本issue致力于归纳各位使用 renren-fast-vue 项目遇到的各种问题的解决方案。

如果你也遇到了其他问题,且找到了解决方案,欢迎向本仓库提交PR。

Cannot download node-sass

报错内容:

[2/5] scripts.install node-sass@4.13.1 run "node scripts/install.js", root: "F:\\workspace\\gulimall-vue\\node_modules\\_node-sass@4.13.1@node-sass"
Downloading binary from https://cdn.npm.taobao.org/dist/node-sass/v4.13.1/win32-x64-83_binding.node
Cannot download "https://cdn.npm.taobao.org/dist/node-sass/v4.13.1/win32-x64-83_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

解决方案:整理 node-sass 安装失败的原因及解决办法

Error: getaddrinfo ENOTFOUND

报错内容:

> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

 10% building modules 1/1 modules 0 activeevents.js:292
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND C:\windows\System32\drivers\etc\hosts
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
Emitted 'error' event on Server instance at:
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1500:12)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:17) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'C:\\windows\\System32\\drivers\\etc\\hosts'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! renren-fast-vue@1.2.2 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the renren-fast-vue@1.2.2 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\Program Files\nodejs\node_cache\_logs\2021-01-30T12_39_13_111Z-debug.log

解决方案:在 package.json 中的 scripts.dev 中添加 --host 127.0.0.0。示例:

  "scripts": {
    "dev": "webpack-dev-server --host 127.0.0.1 --inline --progress --config build/webpack.dev.conf.js",
    ......
  },

更多参考:webpack-dev-server can't find localhost

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/super9du/renrenfast-vue-issue-resolved.git
git@gitee.com:super9du/renrenfast-vue-issue-resolved.git
super9du
renrenfast-vue-issue-resolved
renrenfast-vue-issue-resolved
master

搜索帮助