cnodejs / nodeclub

:baby_chick:Nodeclub 是使用 Node.js 和 MongoDB 开发的社区系统
http://cnodejs.org/
MIT License
9.34k stars 3.12k forks source link

Busboy is not a constructor #1144

Open winterZhao opened 2 years ago

winterZhao commented 2 years ago

看到package.json里的"connect-busboy": "0.0.2"写死版本了。然后到connect-busboy看到https://github.com/mscdex/connect-busboy/issues/21 里写的

v0.0.3 is released that fixes the semver range to match the pre-v1.0 busboy. v1.0.0 is released to match the changes in busboy v1.0.

现在尝试按照,在pacakge-lock.json里的"connect-busboy": "0.0.2",依赖安装到的busboy为*,实际安装的是1.4.0版本。所以再注册用户时会报错Busboy is not a constructor。感觉connect-busboy不太好改。是否您这边把connect-busboy升高会好点呢。

tsflow commented 2 years ago

升级到v1.0.0 就行了