next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Docs: 'rm' command alternative to support build on a windows OS machine

Open alphaxek opened this issue 3 years ago • 0 comments

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.

  1. packages/font
  2. packages/react-dev-overlay
  3. 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.

  1. packages/font
  2. packages/react-dev-overlay
  3. 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

alphaxek avatar Nov 03 '22 19:11 alphaxek