Skip to content

chore: specify npm version explicitly to avoid 'npm MODULE_NOT_FOUND' error#5312

Merged
SteKoe merged 4 commits intocodecentric:masterfrom
cdprete:chore/fix-npm-run
May 5, 2026
Merged

chore: specify npm version explicitly to avoid 'npm MODULE_NOT_FOUND' error#5312
SteKoe merged 4 commits intocodecentric:masterfrom
cdprete:chore/fix-npm-run

Conversation

@cdprete
Copy link
Copy Markdown
Contributor

@cdprete cdprete commented Apr 27, 2026

See eirslett/frontend-maven-plugin#1178

@SteKoe can't renovate be configured to keep in sync those node.version (and now npm.version) properties every time it updates the engines section under the package.json?

The Node version specified in the pom.xml was way older than the one specified under engines in the package.json.

@cdprete cdprete requested a review from a team as a code owner April 27, 2026 18:33
@cdprete cdprete force-pushed the chore/fix-npm-run branch 4 times, most recently from 849d55a to 53b67f9 Compare April 27, 2026 18:35
@cdprete cdprete force-pushed the chore/fix-npm-run branch 7 times, most recently from b2dbb22 to dcd3d84 Compare May 5, 2026 06:45
@SteKoe SteKoe force-pushed the chore/fix-npm-run branch from e198c60 to cf6bc9c Compare May 5, 2026 09:48
@SteKoe
Copy link
Copy Markdown
Contributor

SteKoe commented May 5, 2026

I have pushed a renovate.json file that tries to address this issue. I also updated versions in other places, as well.

@cdprete
Copy link
Copy Markdown
Contributor Author

cdprete commented May 5, 2026

I have pushed a renovate.json file that tries to address this issue. I also updated versions in other places, as well.

Good to hear.
Otherwise I was thinking about loading the package.json file in Maven and extract them on demand.

Will it track the npm version as well?

@SteKoe SteKoe force-pushed the chore/fix-npm-run branch from d92cf5d to aad6b98 Compare May 5, 2026 10:33
@SteKoe
Copy link
Copy Markdown
Contributor

SteKoe commented May 5, 2026

Will it track the npm version as well?

npm versions are handled independently by renovate but are now bundled in one PR, when node.js version increases. According to the docs, at least.

@SteKoe SteKoe merged commit a67279f into codecentric:master May 5, 2026
1 check passed
@cdprete cdprete deleted the chore/fix-npm-run branch May 5, 2026 12:54
@cdprete
Copy link
Copy Markdown
Contributor Author

cdprete commented May 5, 2026

Will it track the npm version as well?

npm versions are handled independently by renovate but are now bundled in one PR, when node.js version increases. According to the docs, at least.

Thanks.
Now I think that all the build issues on Windows are solved.
It's only missing #5303, but that's more a setup issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants