Git Product home page Git Product logo

Comments (5)

srs avatar srs commented on August 20, 2024

Actually it's fetching the linux tar.gz dependency only for NPM and other node resources. The EXE (node.exe) is still windows. I should probably have written a comment about this since it sounds wierd, but it actually works. Does it not work for you?

from gradle-node-plugin.

sruffing avatar sruffing commented on August 20, 2024

I am running on a Windows 7 Enterprise box, and it attempts to pull the Linux version

Could not resolve all dependencies for configuration ':nodeDist'.
> Could not find org.nodejs:node:0.10.38.
  Searched in the following locations:
http://{artifactory}/artifactory/{repo}/org/nodejs/node/v0.10.38/ivy.xml
http://{artifactory}/artifactory/{repo}/org/nodejs/node/v0.10.38/node-v0.10.38-linux-x86.tar.gz

We have it configured as...

node {
    version = '0.10.38'
    distBaseUrl = 'http://{artifactory}/artifactory/{repo}/org/nodejs/node'
    download = true
    workDir = file("${buildDir}/nodejs")
}

from gradle-node-plugin.

srs avatar srs commented on August 20, 2024

Right, if you try to comment out the "distBaseUrl" option and try again, does it work? It actually needs the resources inside the linux version for things to work. It also needs the node.exe. Since node does not distribute an official (zip or tar) archive for windows I need to rely on the linux version.

So, to get this to work with your setup, you will have to publish the linux archive to your artifactory repo.

from gradle-node-plugin.

sruffing avatar sruffing commented on August 20, 2024

Ok, I'm following now better. Thanks for the clarification. It does work without providing the distBaseUrl.

I think I tracked it down to an x86 versus our repository having an x64 instance only. So for Windows you only pull the 32-bit tar dependency, but still use the 64-bit Windows compiled version. I can see how that confused us when importing some of the libraries!

Thanks for the help.

from gradle-node-plugin.

srs avatar srs commented on August 20, 2024

Yes, it can be confusing. I see that now and will try to write a FAQ when I get the time to do it.

I am glad that that it worked out ok. Happy to answer any questions :-)

from gradle-node-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.