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

Namespace 'NodeJS' has no exported member 'WriteStream'.

未关闭
#3,566 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

首先使用 ionic serve 重现该失败,然后检查 node_modules/@types/inquirer/index.d.ts 以及错误中提到的已安装 Node.js 类型定义。确定是哪个依赖项或类型版本导致缺少 NodeJS.WriteStreamReadStream 成员;完成标准是 Ionic 应用能够在没有这些 TypeScript 错误的情况下运行服务。

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

描述

triage

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[x] 4.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

Current behavior:
I am just trying to serve my application and it throws this:
node_modules/@types/inquirer/index.d.ts
Namespace 'NodeJS' has no exported member 'WriteStream'.
Namespace 'NodeJS' has no exported member 'ReadStream'.

Expected behavior:
Serve the application.

Steps to reproduce:

`ionic serve`

Other information:
I am not sure if that could be the problem, but I recently changed from Windows to Mac.

Ionic info: :

Ionic:

   ionic (Ionic CLI)  : 4.0.1 (/Users/eduardogodoy/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.6

Cordova:

   cordova (Cordova CLI) : not installed
   Cordova Platforms     : none

System:

   NodeJS : v8.11.3 (/usr/local/bin/node)
   npm    : 5.6.0
   OS     : macOS High Sierra
主要语言
TypeScript
星标
2k
派生
681
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

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

ionic-team/ionic-cli 的其他 Issue

查看 ionic-team/ionic-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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