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

快速入门有些操作会报错,不知nodejs版本要求多少 10.x,14.x,20.x都试过 #882

Closed
chanayy123 opened this issue Feb 29, 2024 · 3 comments

Comments

@chanayy123
Copy link

在game-server里npm install后执行npm run build会报一下错误:
node_modules/engine.io-parser/build/esm/index.d.ts:5:38 - error TS2307: Cannot find module 'node:stream/web' or its corresponding type declarations.

5 import type { TransformStream } from "node:stream/web";
~~~~~~~~~~~~~~~~~

Found 1 error in node_modules/engine.io-parser/build/esm/index.d.ts:5

@whtiehack
Copy link
Member

没见过你这种错误.
10 14 20 都可以的吧.

你这个是不是npm install 没有 完全执行成功?

@whtiehack
Copy link
Member

@chanayy123

npm install 以后
再执行一次 npm i [email protected]
5.2.2版本有问题.

@chanayy123
Copy link
Author

多谢多谢,真的是因为这个!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants