-
Notifications
You must be signed in to change notification settings - Fork 210
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
Could not ind ivy.xml #292
Comments
Could you please give more info on
|
I have the same issue. There you go my build.gradle:
I am trying to run just nodeSetup behind the proxy. The Output looks like:
|
I'm also facing the same kind of issue, any solution/update on this would be great? |
This is definitely a proxy issue. It's silently failing to get the dist zip and falling back to trying to get ivy.xml which doesn't exist. For me, all my proxy settings were correct, but px was timing out for some mysterious reason. Swapping back to using cntlm worked. Using the proxy directly would also likely work. |
Hi there, Same problem on my side :( Thanks for your help :) !
|
any progress on this ? |
There's not much to do here, it's a proxy issue on your end. The only progress that could be made on this issue is adding better logging/error messages when it occurs. |
Had the same issue on one project, other project worked. Only difference was gradle wrapper version. So I think this is related to the ticket: #351 Also note: ivy.xml was a fallback and does not actually exist (saw that when checking the older project where it works for me.) Hope that gives some insight to many devs suffering from this issue. |
are there some plans to fix it? |
I have seen this issue as well. The problem is related to some optimization in the gradle repository resolution logic. In gradle 6 the default behavior is to look only for metadata files and not the actual artifact (which is a second HTTP Get). The old behavior can be restored with some additional configuration to the repository definition. The issue with the node plugin is that for fetching the node artifacts the repository definition is somewhat hard coded in com.moowork.gradle.node.task.SetupTask.addRepository method, which will remove all configured repos for the project, set in a specific repo to use for node resolution, and will restore the project repos later when node is resolved. To restore the old gradle resolution behavior requires a change like the following to this code to have gradle search for both the ivy metadata or the artifact (note the metadataSources enclosure).
When I added this hack to a copy of the node plugin code and rebuilt it, I was able to get past this issue. Another solution would be to get the ivy metadata file added for the node artifact in the repo hard coded in the gradle plugin: https://nodejs.org/dist (or point to a repo that has the missing ivy descriptor for this artifact). |
The reason we forked this is because of Gradle 5+ compat, if you can live without grunt/gulp (or can use NpxTask to run them) there's https://github.com/node-gradle/gradle-node-plugin |
Hello, Thank you @deepy for solution! I can confirm that this: plugins {
// id("com.moowork.node") version "1.3.1"
id("com.github.node-gradle.node") version "2.2.0"
}
node {
download = true
version = "12.13.1"
npmVersion = "6.9.0"
yarnVersion = "1.17.3"
nodeModulesDir = project.file("ui")
workDir = project.file("${project.buildDir}/nodejs")
npmWorkDir = project.file("${project.buildDir}/npm")
yarnWorkDir = project.file("${project.buildDir}/yarn")
} and these tasks are working as expected on Gradle 6.0.1: ./gradlew nodeSteup
./gradlew npmSteup
./gradlew npm_i
./gradlew npm_run_build Regards, |
Thank you @deepy for solution! |
Hi, what should I do if our project use gulp? It cannot find ivy.xml and node-v11.15.0-linux-x86.tar.gz Thank you. |
How reliant on gulp are you? Could you use gulp through |
@deepy
do you know where I can find implementation documents about npx? Thank you! |
Attempt to fix build issue by using gradle node plugin as recommended here srs/gradle-node-plugin#292
Hey there 👋 Node.js team here. This behaviour was introduced with nodejs/build#3223 so that y'all can track why this is happening now. Note that is expected behaviour. And that this #292 (comment) comment above is a proper fix for the issue. Extra details are also available here nodejs/nodejs.org#5149 (comment) |
Adding the ,plugin I still get the same error. Could it be because I am using node version 10 and that is not supported anymore? |
You need Gradle 4.5 or newer, if you cannot upgrade from Gradle 4 I recommend you upgrade to the latest Gradle 4.10.3 |
Hi guys, change node {
...
distBaseUrl = 'https://direct.nodejs.org/dist/'
...
} ref from nodejs/nodejs.org#5149 (comment) |
When trying to install node, yarn and npm with this configuration
The following error is received
Could not get resource 'https://nodejs.org/dist/v8.9.1/ivy.xml'.
Indeed, no ivy.xml file exist on nodejs.org website. What's wrong here ? How to fix ?
The text was updated successfully, but these errors were encountered: