next.js
next.js copied to clipboard
Docs: 'rm' command alternative to support build on a windows OS machine
What is the improvement or update you wish to see?
Added new devDependencies in below package's package.json file which gives the alternative to the rm -rf command, which is rimraf to support codebase build on a Windows OS machine.
- packages/font
- packages/react-dev-overlay
- packages/react-refresh-utils
Is there any context that might help us understand?
While building the project on a Windows OS machine, the build fails while running the pnpm run build command and exits with exit(1) in the below 3 packages.
- packages/font
- packages/react-dev-overlay
- packages/react-refresh-utils
try to run pnpm run build inside each package. The error is with the rm command, which is not a recognizable command on Windows OS, and the alternative is rimraf .
Does the docs page already exist? Please link to it.
https://github.com/vercel/next.js/blob/canary/contributing/core/building.md