-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm is not using cache #1194
Comments
Hi! It looks like you are using the classic Heroku Node.js buildpack, rather than the WIP next-gen Cloud Native Buildpack. Moving this issue to the correct repo :-) |
@gtournie we don't test our buildpack with Digital Ocean + dokku so it's hard to say why your npm cache is not being restored and there are currently no issues with npm caching on Heroku. That said, based on the configuration you've noted above, the only reason I can see for why the cache wouldn't be restored is if the cached folder was not stored during the previous build. At the end of a build is does the following output appear?
|
(I'll note here that dokku does cache npm modules normally ( But this buildpack appears to reinstall node/npm (and maybe node_modules from the npm cache?) even on heroku — in #914 the author was happy with 15 second build time even when hitting cache... |
I just setup a new droplet on Digital Ocean, with the latest Ubuntu.
I just use a minimal configuration:
(Buildpack is automatically detected and installed. It installs heroku-buildpacks-nodejs by default)
Thing is, everytime I push on dokku it says:
Here's my env:
Is there something I forgot to do to activate npm's cache?
The text was updated successfully, but these errors were encountered: