When deploying applications to CloudFoundry via the Node.js buildpack
- npm rebuild
- npm install
are executed every time during staging.
Both operations can take a significant amount of time, especially for applications with complex vendored dependency trees.
My applications do not need any native modules and have all their dependencies vendored.
I search a way to to skip the rebuild and install steps completely during staging.
Edit: I am aware of the workarounds possible by manipulating package.json
as suggested in this SO answer.
Other parts of the build system depend on manifest being true to the actual requirements of the applications, so this is not possible for me.