New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodeDownloadRoot and node.version #1083
Comments
Any ideas how to resolve this? |
Try using a |
Thanks for the suggestion, Eirik. Do you mean to provide the following? This would create following downloadURL which will result in HTTP 404: I think the problem is, that the archive file contains the v in its folder structure while the download URL does not contain the v |
Maybe your server is set up with the wrong URL path? |
That's exactly the issue. Is there any options in the plugin to work around this problem? |
There is no option in the plugin. You'll have to change your own proxy server, so that the URL structure is exactly the same as on nodejs.org. |
We experience the following problem during the node installation (install-node-and-npm). The lookup for the node.exe fails due to a mismatch of the node-version and folder structure of the node archive/zip. Is there a configuration to resolve this?
Current setup:
nodeDownloadRoot=https://our.server/org/nodejs/download/node/node
node.version= 16.19.0
Download is done from: https://our.server/org/nodejs/download/node/node/16.19.0/node-16.19.0-win-x64.zip
After unpacking the archive we get following error:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.2:install-node-and-npm (install-node-and-npm) on project my-project: Could not install Node: Could not find the downloaded Node.js binary in C:\my-project\node\tmp\node-16.19.0-win-x64\node.exe
Expected location: C:\my-project\node\tmp\node-16.19.0-win-x64\node.exe
Actual location: C:\my-project\node\tmp\node-v16.19.0-win-x64\node.exe
Looks like that the plugin is using the provided node.version for the download and the file location lookup, which is not working in this case. Do you have any suggestion how we can point the expected location to the correct location?
The text was updated successfully, but these errors were encountered: