Our project uses several Vaadin dependencies and the vaadin-maven-plugin. These use version 24.6.6. When we upgrade these to 24.7.4 then we get an error in our Jenkins build:
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:24.7.4:prepare-frontend (default) on project back-office-ui: null: MojoFailureException: InvocationTargetException: Could not execute prepare-frontend goal.
[ERROR] Your installed ‘npm’ version (9.5.1) is too old. Supported versions are 9.6+
[ERROR] Please install a new one either:
[ERROR] - by following the Node.js — Download Node.js® guide to install it globally
[ERROR] - or by running the frontend-maven-plugin goal to install it in this project:
[ERROR] $ mvn com.github.eirslett:frontend-maven-plugin:1.10.0:install-node-and-npm -DnodeVersion=“v22.14.0”
However, we have the following version installed:
npm -v → 9.6.7
node -v → v18.17.1
So, we should be ok.
Even when we unzip https://nodejs.org/dist/v22.14.0/node-v22.14.0.tar.gz to a folder ‘node’ in the Jenkins home directory ‘.vaadin’, the error remains. Executing ‘mvn com.github.eirslett:frontend-maven-plugin:1.10.0:install-node-and-npm -DnodeVersion=“v22.14.0”’ in our build is not an option.
Please advice.