Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Problems with Node 12 on Windows

未关闭
#289 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
tooling

调研方向

使用 Node 12 在 Windows 7 上通过 source-map-support 复现故障,然后跟踪报告中的 env.SOME_VAR 表达式是来自此仓库还是某个依赖项。确认失败的查找使用了正确的环境访问方式,并验证在所报告的设置中错误不再发生。

由索引模型根据 Issue 内容生成。

描述

Somethere in code of node-source-map-support there is a check like
(env.SOME_VAR === undefinded)
But in windows there is no global variable env, so this code falls out with an error.
Also, Windows 7 is not supported by the latest versions of NodeJS (14 and higher), so there is no way to update the Node.

P.S. Perhaps the problem is in the code of some kind of dependency (since I could not find such a code in the sources of this repository), but the error is returned by source-map-support = (

What to fix: Change everywhere in the code env. on process.env.

主要语言
JavaScript
星标
2.2k
派生
221
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

evanw/node-source-map-support 的其他 Issue

查看 evanw/node-source-map-support 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。