Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new TypeError(${context} is not a ReadableStream.) #93

Closed
westhuang opened this issue Mar 5, 2023 · 3 comments
Closed

new TypeError(${context} is not a ReadableStream.) #93

westhuang opened this issue Mar 5, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@westhuang
Copy link

对npm这套不了解,执行run dev后出现下面报错,网上没查到相关资料,请帮忙看看~
信息如下:

westhuang@westhuangdeMacBook-Pro chatgpt-demo % npm run dev

novel-gpt@0.0.1 dev
astro dev

🚀 astro v2.0.17 started in 108ms

┃ Local http://127.0.0.1:3000/
┃ Network use --host to expose

file:///Users/westhuang/GitDir/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:432
throw new TypeError(${context} is not a ReadableStream.);
^

TypeError: First parameter has member 'readable' that is not a ReadableStream.
at assertReadableStream (file:///Users/westhuang/GitDir/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:432:21)
at convertReadableWritablePair (file:///Users/westhuang/GitDir/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:3509:11)
at ReadableStream.pipeThrough (file:///Users/westhuang/GitDir/chatgpt-demo/node_modules/node-fetch-native/dist/shared/node-fetch-native.2b047dc1.mjs:3584:33)
at fetchFinale (/Users/westhuang/GitDir/chatgpt-demo/node_modules/undici/lib/fetch/index.js:973:52)
at mainFetch (/Users/westhuang/GitDir/chatgpt-demo/node_modules/undici/lib/fetch/index.js:773:5)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@MssText
Copy link

MssText commented Mar 5, 2023

node版本 需要18+

@westhuang
Copy link
Author

node版本 需要18+

有用,3q~

@ddiu8081 ddiu8081 closed this as completed Mar 5, 2023
@ddiu8081 ddiu8081 added the question Further information is requested label Mar 5, 2023
@ddiu8081 ddiu8081 changed the title 本地npm run dev启动失败 new TypeError(${context} is not a ReadableStream.) Mar 6, 2023
@ddiu8081 ddiu8081 added duplicate This issue or pull request already exists and removed question Further information is requested labels Mar 6, 2023
@ddiu8081
Copy link
Member

ddiu8081 commented Mar 6, 2023

Duplicate of #65 .

@ddiu8081 ddiu8081 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants