chore: explicitly declare body-parser dependency for pnpm #2873
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "MindXL/SpaceNinjaServer:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
An error was reported when running build:
body-parser is a dependency of express, so it should be installed with
npm iornpm ci. I certainly wonder how you managed to fuck it up.Try
pnpm i. Pnpm did not installbody-parsewhen I'm exploring.Does the guide say to use
pnpmornpm? :)Also, in general, building is not needed anymore unless you're on a super old Node version.
fix(depend): add missing module before run build scriptto chore: explicitly declare body-parser dependency for pnpmI merely use
pnpmto manage modules. After cloning this repo, I ranpnpm iand thenpnpm run build(orpnpm run raw, or something similar). Both pnpm and VSCode reported missing modules. I thought this might be an issue that others might run into and might need a fix for. But in the end, it's OK if we look at this in a different way. It depends on your perspective.