cloudfoundry / docs-buildpacks

http://docs.cloudfoundry.org/buildpacks/
Apache License 2.0
21 stars 118 forks source link

node.js vendoring doesn't work with node version >= 16 #296

Closed EchoSierra closed 1 year ago

EchoSierra commented 1 year ago

The described behaviour with "Vendoring App Dependencies" works with node versions <= 14. https://docs.cloudfoundry.org/buildpacks/node/index.html#vendoring

With higher node versions (at least I tested it with node v16.20.0 and v18.9.0) the vendoring is no longer working. An npm install always reinstalls all packages, or at least it tries to do it. There are issues with dependencies in private repositories or with offline environments.

cf-gitbot commented 1 year ago

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

EchoSierra commented 1 year ago

I recognized it might be cause by something else. I will double check and reopen the ticket in case it's caused by the buildpack.