node-pinus / pinus

A fast,scalable,distributed game server framework for Node.js, Powered by TypeScript. 一个TypeScript写的node.js分布式游戏/应用服务器框架(原型基于pomelo)。
https://pinus.io
MIT License
1.78k stars 370 forks source link

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

Closed chanayy123 closed 4 months ago

chanayy123 commented 4 months ago

在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 commented 4 months ago

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

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

whtiehack commented 4 months ago

@chanayy123

npm install 以后 再执行一次 npm i engine.io-parser@5.2.1 5.2.2版本有问题.

chanayy123 commented 4 months ago

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