Skip to content

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

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

SteKoe merged 4 commits into
codecentric:masterfrom
cdprete:chore/fix-npm-run

Conversation

@cdprete

@cdprete cdprete commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

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

SteKoe commented May 5, 2026

Copy link
Copy Markdown
Contributor

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

@cdprete

cdprete commented May 5, 2026 •

Copy link
Copy Markdown
Contributor Author

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

SteKoe commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

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

cdprete commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

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.

@cdprete

cdprete commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

Hey @SteKoe.

If I've a look at 33acb75, it doesn't seem to properly work or am I missing something?
My expectations were that now the versions in the pom.xml would also be kept in sync.

@cdprete

cdprete commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

Hey @SteKoe.

If I've a look at 33acb75, it doesn't seem to properly work or am I missing something? My expectations were that now the versions in the pom.xml would also be kept in sync.

Fancy enough, it has now done it with 39d6941 but only for Node and not for NPM

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