While I still haven’t found any explanation on what exit code 9 is, I did solve my problem. I changed the build command in the Netlify deploy settings from npm run build to react-scripts build. That got rid of any errors and successfully deployed the site!
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Command failed with exit code 1: npm run build | 3 | 3443 | July 12, 2023 | |
| Build script returned non-zero exit code: 2 | 4 | 3736 | March 15, 2022 | |
| Command failed with exit code 1 , how to resolve | 3 | 1985 | July 30, 2022 | |
| Build script returned "Command failed with exit code 1: npm build" | 2 | 2265 | December 29, 2022 | |
| Exit code 9 error | 2 | 339 | February 16, 2024 |