Build error: recipe for target 'node_modules' failed #6523

Closed
opened 2025-11-02 06:58:30 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @strk on GitHub (Dec 15, 2020).

Current master branch (c3fc190372)

strk@hst:~/go/src/code.gitea.io/gitea$ make
npm install --no-save

> core-js@3.8.0 postinstall /home/strk/go/src/code.gitea.io/gitea/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


Makefile:633: recipe for target 'node_modules' failed
make: *** [node_modules] Error 1
strk@hst:~/go/src/code.gitea.io/gitea$ echo $?
2
strk@hst:~/go/src/code.gitea.io/gitea$ nodejs --version
v10.23.0
strk@hst:~/go/src/code.gitea.io/gitea$ go version
go version go1.12.5 linux/amd64

Originally created by @strk on GitHub (Dec 15, 2020). Current master branch (c3fc190372cb525fdacf60606bf8aaf1c33e7da7) ``` strk@hst:~/go/src/code.gitea.io/gitea$ make npm install --no-save > core-js@3.8.0 postinstall /home/strk/go/src/code.gitea.io/gitea/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Makefile:633: recipe for target 'node_modules' failed make: *** [node_modules] Error 1 strk@hst:~/go/src/code.gitea.io/gitea$ echo $? 2 strk@hst:~/go/src/code.gitea.io/gitea$ nodejs --version v10.23.0 strk@hst:~/go/src/code.gitea.io/gitea$ go version go version go1.12.5 linux/amd64 ```
Author
Owner

@strk commented on GitHub (Dec 15, 2020):

Second attempt fails with ENOMEM, which could explain:

npx webpack --hide-modules --display-entrypoints=false
Error: spawn ENOMEM
@strk commented on GitHub (Dec 15, 2020): Second attempt fails with ENOMEM, which could explain: ``` npx webpack --hide-modules --display-entrypoints=false Error: spawn ENOMEM ```
Author
Owner

@strk commented on GitHub (Dec 15, 2020):

Confirmed: it was the out-of-memory condition blocking the build

@strk commented on GitHub (Dec 15, 2020): Confirmed: it was the out-of-memory condition blocking the build
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6523