"build failed!" and that it runs perfectly locally

hi
i try to deploy an static site and thet what i got :
Cloning from

Feb 5 11:04:30 PM==> Checking out commit 0eb2048cde781546db410747c2bdb6e3a71bf387 in branch main

Feb 5 11:04:33 PM==> Installing dependencies with npm…

Feb 5 11:04:33 PM==> Using Node.js version 22.12.0 (default)

Feb 5 11:04:33 PM==> Docs on specifying a Node.js version: h ttps://render.com/docs/node-version

Feb 5 11:04:36 PM==> Using Bun version 1.1.0 (default)

Feb 5 11:04:36 PM==> Docs on specifying a bun version: ht tps://render.com/docs/bun-version

Feb 5 11:04:47 PM

Feb 5 11:04:47 PMchanged 1 package, and audited 1327 packages in 11s

Feb 5 11:04:47 PM

Feb 5 11:04:47 PM268 packages are looking for funding

Feb 5 11:04:47 PM run npm fund for details

Feb 5 11:04:47 PM

Feb 5 11:04:47 PM8 vulnerabilities (2 moderate, 6 high)

Feb 5 11:04:47 PM

Feb 5 11:04:47 PMTo address all issues (including breaking changes), run:

Feb 5 11:04:47 PM npm audit fix --force

Feb 5 11:04:47 PM

Feb 5 11:04:47 PMRun npm audit for details.

Feb 5 11:04:56 PM

Feb 5 11:04:56 PMup to date, audited 1327 packages in 9s

Feb 5 11:04:56 PM

Feb 5 11:04:56 PM268 packages are looking for funding

Feb 5 11:04:56 PM run npm fund for details

Feb 5 11:04:56 PM

Feb 5 11:04:56 PM8 vulnerabilities (2 moderate, 6 high)

Feb 5 11:04:56 PM

Feb 5 11:04:56 PMTo address all issues (including breaking changes), run:

Feb 5 11:04:56 PM npm audit fix --force

Feb 5 11:04:56 PM

Feb 5 11:04:56 PMRun npm audit for details.

Feb 5 11:04:56 PM==> Running build command ‘npm run build’…

Feb 5 11:04:56 PM

Feb 5 11:04:56 PM> react-todos@0.1.0 build

Feb 5 11:04:56 PM> react-scripts build

Feb 5 11:04:56 PM

Feb 5 11:04:56 PMsh: 1: react-scripts: Permission denied

Feb 5 11:04:56 PM==> Build failed :disappointed:

Feb 5 11:04:56 PM==> Common ways to troubleshoot your deploy: htt ps://render.com/docs/troubleshooting- deploys

thanks!!

It’s most likely either that you have react-scripts in your devDependencies, or not in your package.json at all.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.