Giter VIP home page Giter VIP logo

Comments (5)

cf-gitbot avatar cf-gitbot commented on September 2, 2024

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/108988838.

from nodejs-buildpack.

flavorjones avatar flavorjones commented on September 2, 2024

Hi @rndstr,

Thanks for asking. I'd like to better understand what you're doing, as 4.2 is supported in the latest nodejs buildpack, v1.5.3.

Are you using your CF installation's default nodejs buildpack? If so, can you reply with the output from runing cf buildpacks?

Are you passing a git URL for a buildpack option at push time (e.g. cf push appname -b https://github.com/cloudfoundry/yada/yada)? If so, can you provide the command line you're using?

Thanks!

from nodejs-buildpack.

rndstr avatar rndstr commented on September 2, 2024

Hey @flavorjones, thanks for the quick response. We are using v1.5.2 (which is supporting 4.2 as well).

 $ cf buildpacks
Getting buildpacks...
buildpack                            position   enabled   locked   filename   
<snip>
nodejs_buildpack                     5          true      false    nodejs_buildpack-cached-v1.5.2.zip   
<snip>

I'm not providing a buildpack URL.

Here is the output where it fails finding the nodejs version:

-----> Installing binaries
       engines.node (package.json):  4.2.x
       engines.npm (package.json):   unspecified (use default)
       Resolving node version 4.2.x via semver.io...
       Downloading and installing node undefined...
       Downloaded []
       Unable to download node undefined; does it exist?

I forgot to mention the file where the call originiates, in lib/binaries.sh. It doesn't actually call semver.io because it's cached.

If you call node lib/version_resolver.js "4.2.x" yourself, it returns undefined, since versions.json is out of date.

And here the output with modified engine as node 0.12.x

----> Installing binaries
       engines.node (package.json):  0.12.x
       engines.npm (package.json):   unspecified (use default)
       Resolving node version 0.12.x via semver.io...
       Downloading and installing node 0.12.7...
       Downloaded [file:///var/vcap/data/dea_next/admin_buildpacks/072ef887-2ba2-44c2-a72d-e9fbb604a2d3_564637e3a4adc3a4b0efc22bc801d6f3c5c7185c/dependencies/https___pivotal-buildpacks.s3.amazonaws.com_node_beta-binaries_node-0.12.7-linux-x64.tar.gz]
       Using default npm version: 2.11.3

I also just stumbled upon the Coding Guidelines

If a new version of node is added to the manifest.yml it must be added to files/versions.json.

So I'll go ahead and try to create a PR

Edit: I ran out of space (?) for the bosh-lite install and run the tests, so feel free to push this yourself. I might not get around in trying to get CF running locally for a few days.

from nodejs-buildpack.

rndstr avatar rndstr commented on September 2, 2024

thanks @aminjam

from nodejs-buildpack.

Dannyzen avatar Dannyzen commented on September 2, 2024

Hey, this will be in the 1.5.4 release - expected later today

from nodejs-buildpack.

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.