You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're doing an npm install without caching.. but you have ddev-global-cache mounted. And there's a whole npm_config_cache already built and waiting that could be used there (and cached). So you could add the environment variable
- npm_config_cache=/mnt/ddev-global-cache/npm
And I don't think you'd have to chown or anything. (BTW, I think your chown is from an earlier version of this when you were running the container as root, so that should be removable now.)
The text was updated successfully, but these errors were encountered:
rfay
changed the title
Possibility: Use cached node stuff
Possibility: Use global npm cache
Jul 30, 2024
I see this in the post-start:
You're doing an npm install without caching.. but you have
ddev-global-cache
mounted. And there's a wholenpm_config_cache
already built and waiting that could be used there (and cached). So you could add the environment variableAnd I don't think you'd have to chown or anything. (BTW, I think your chown is from an earlier version of this when you were running the container as root, so that should be removable now.)
The text was updated successfully, but these errors were encountered: