Closed CN91 closed 2 years ago
Eventually made it work:
.npmrc
sharp_libvips_local_prebuilds = /tmp/app/binaries/libvips/
sharp_local_prebuilds = /tmp/app/binaries/sharp/v0.30.6/
tarball = /tmp/app/binaries/node_headers/node-v16.14.2-headers.tar.gz
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
? { "name": "VMware Tanzu Application Service", "build": "2.12.12-build.1", "support": "https://support.pivotal.io", "version": 0, "description": "https://docs.pivotal.io/pivotalcf/2-12/pcf-release-notes/runtime-rn.html", "min_cli_version": "6.23.0", "min_recommended_cli_version": "6.23.0", "api_version": "2.171.0", "osbapi_version": "2.15", }note I removed unneeded information.
What version of the buildpack you are using? Nodejs Buildpack version 1.7.69 npm info using npm@8.5.0 npm info using node@v16.14.2 stack: https://github.com/cloudfoundry/cflinuxfs3
If you were attempting to accomplish a task, what was it you were attempting to do? Installing a Strapi / Directus application with an underlying Sharp - dependency
What did you expect to happen? Install succesfully while using provided prebuilds with environment settings (e.g.
NPM_CONFIG_TARBALL
/NPM_CONFIG_SHARP_LOCAL_PREBUILDS
NPM_CONFIG_SHARP_LIBVIPS_LOCAL_PREBUILDS
)I was expecting that the environment would use the set configurations when running npm install.
What was the actual behavior?
On loading it set the npm environment variables:
When running into the command installing sharp it ran into this issue: https://github.com/lovell/sharp/issues/1882
It would be great if this package/ buildpack could be made libvips compatible.
Can you provide a sample app?
package.json
manifest.yml
folder setup
Note: our cf installation is on a closed environment, so if you try to reproduce it needs to be in a setting where there is no acces to the www. All the npm packages are available through an internal package manager.
Please confirm where necessary: