[GH-ISSUE #253] Cannot make web from release tarball 1.22.0 #197

Closed
opened 2026-05-07 00:21:19 +02:00 by BreizhHardware · 5 comments

Originally created by @oddlama on GitHub (May 14, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/253

This is the output of make web on my system after extracting the 1.22.0 release tarball. There seem to be two separate issues.

Firstly, something complains about the extracted contents not being a git repository (doesn't seem to cause any failure though, I guess it's from the first line in the Makefile).

Secondly, the build fails as the react-scripts executable cannot be found. Is this a dependency that isn't listed in the documentation, or am I missing something else?

fatal: not a git repository (or any of the parent directories): .git
cd web && npm install
cd web \
	&& npm run build \
	&& mv build/index.html build/app.html \
	&& rm -rf ../server/site \
	&& mv build ../server/site \
	&& rm \
		../server/site/config.js \
		../server/site/asset-manifest.json

> ntfy@1.0.0 build
> react-scripts build

sh: line 1: react-scripts: command not found
make: *** [Makefile:92: web-build] Error 127t:ctor Completed in 1ms
make: *** Waiting for unfinished jobs....
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.

added 1413 packages, and audited 1414 packages in 31s

183 packages are looking for funding
  run `npm fund` for details

6 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
npm notice 
npm notice New minor version of npm available! 8.8.0 -> 8.10.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.10.0
npm notice Run npm install -g npm@8.10.0 to update!
npm notice 
# If this fails for .svg files, optimizes them with svgo
Originally created by @oddlama on GitHub (May 14, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/253 This is the output of `make web` on my system after extracting the 1.22.0 release tarball. There seem to be two separate issues. Firstly, something complains about the extracted contents not being a git repository (doesn't seem to cause any failure though, I guess it's from the first line in the Makefile). Secondly, the build fails as the `react-scripts` executable cannot be found. Is this a dependency that isn't listed in the documentation, or am I missing something else? ``` fatal: not a git repository (or any of the parent directories): .git cd web && npm install cd web \ && npm run build \ && mv build/index.html build/app.html \ && rm -rf ../server/site \ && mv build ../server/site \ && rm \ ../server/site/config.js \ ../server/site/asset-manifest.json > ntfy@1.0.0 build > react-scripts build sh: line 1: react-scripts: command not found make: *** [Makefile:92: web-build] Error 127t:ctor Completed in 1ms make: *** Waiting for unfinished jobs.... npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. added 1413 packages, and audited 1414 packages in 31s 183 packages are looking for funding run `npm fund` for details 6 moderate severity vulnerabilities To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. npm notice npm notice New minor version of npm available! 8.8.0 -> 8.10.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.10.0 npm notice Run npm install -g npm@8.10.0 to update! npm notice # If this fails for .svg files, optimizes them with svgo ```
BreizhHardware 2026-05-07 00:21:19 +02:00
Author
Owner

@binwiederhier commented on GitHub (May 15, 2022):

I haven't done a clean install in a while, so it is definitely possible that I missed something. I do think that the last time I tried it it was working nicely even with the new web app.

react-scripts is "Create React App", which I thought was gonna be installed when you do "npm install". Maybe I was wrong. Thanks for the bug report.

<!-- gh-comment-id:1126832949 --> @binwiederhier commented on GitHub (May 15, 2022): I haven't done a clean install in a while, so it is definitely possible that I missed something. I do think that the last time I tried it it was working nicely even with the new web app. `react-scripts` is "Create React App", which I thought was gonna be installed when you do "npm install". Maybe I was wrong. Thanks for the bug report.
Author
Owner

@binwiederhier commented on GitHub (May 16, 2022):

I tried it in a Docker and it seems to work: https://asciinema.org/a/494722

I hate to say it, but this must be your environment. Let me know if you figure it out so I can adjust the docs, or join the Discord/Matrix. Maybe someone there can help with your specific problem. We're always happy to help.

It's not a bug though, so I'm going to close the ticket. Thank you for using ntfy. :-D

<!-- gh-comment-id:1127629725 --> @binwiederhier commented on GitHub (May 16, 2022): I tried it in a Docker and it seems to work: https://asciinema.org/a/494722 I hate to say it, but this must be your environment. Let me know if you figure it out so I can adjust the docs, or join the Discord/Matrix. Maybe someone there can help with your specific problem. We're always happy to help. It's not a bug though, so I'm going to close the ticket. Thank you for using ntfy. :-D
Author
Owner

@oddlama commented on GitHub (May 16, 2022):

I respectfully disagree with this not being a bug and would be happy if you could review #257.

<!-- gh-comment-id:1127699749 --> @oddlama commented on GitHub (May 16, 2022): I respectfully disagree with this not being a bug and would be happy if you could review #257.
Author
Owner

@binwiederhier commented on GitHub (May 16, 2022):

I agree with your assessment that my assessment of the situation was incorrect. ;-)

<!-- gh-comment-id:1127710073 --> @binwiederhier commented on GitHub (May 16, 2022): I agree with your assessment that my assessment of the situation was incorrect. ;-)
Author
Owner

@binwiederhier commented on GitHub (May 22, 2022):

This was released yesterday. Thanks for the contribution.

<!-- gh-comment-id:1133944807 --> @binwiederhier commented on GitHub (May 22, 2022): This was released yesterday. Thanks for the contribution.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#197
No description provided.