ionic-team / ionic-team/ionic-cli

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

未關閉
#3,566 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

triage
主要語言
TypeScript
星號
2k
分支
681
PR 合併指標
30 天內沒有已合併 PR

描述

**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
```

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先使用 `ionic serve` 重現此失敗,接著檢查 `node_modules/@types/inquirer/index.d.ts` 以及錯誤中提到的已安裝 Node.js 型別定義。判斷是哪個相依性或型別版本導致缺少 `NodeJS.WriteStream` 和 `ReadStream` 成員;完成標準是 Ionic 應用程式能在沒有這些 TypeScript 錯誤的情況下提供服務。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
node.js, typescript
領域
cli
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。