Skip to content

Node build pack npm install/rebuild #138

@pcsgithubid

Description

@pcsgithubid

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

cf version 6.36.1+e3799ad7e.2018-04-04
"api_version": "2.82.0",
What version of the buildpack you are using?

https://github.com/cloudfoundry/nodejs-buildpack/releases/tag/v1.6.22
If you were attempting to accomplish a task, what was it you were attempting to do?
push node js application to PCF with node_modules has all dependencies.

What did you expect to happen?
The build pack should ignore npm install/ rebuild

What was the actual behavior?
build pack tries to install dependencies and fails to install private git repos because of permission issues if the package.json contains node and npm versions other than default.

"engines": {
"node": "8.9.4",
"npm": "5.6.0"
},

with the default node version 6.14.1, the build pack skips npm install/rebuild, but app gives weird errors during runtime.

Can you provide a sample app?

nope

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions