This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 195
npm preinstall and postinstall scripts are not run #523
Labels
Comments
Closed
kwshi
added a commit
to kwshi/bamba-ink
that referenced
this issue
Mar 18, 2021
What's the status on this? I'm running into this on the |
Is it possible to add other folders to be cache in netlify.toml at all? I haven't seen anything outside the docs though. Currently breaks builds that use playwright because the browser images are cached outside node_modules. |
OK idea for peeps out there stuck wthith is issue: I'm just running my "postinstall" command before the npm build command in Netlify config now.
|
Just got bit by this breaking our environments because |
@jobala Thanks for the PR, a quick review seems to indicate this issue is only fixed for |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
npm preinstall and postinstall scripts are not run, resulting in breaking builds that are valid outside of Netlify.
This is caused by our caching mechanism only restoring the
node_modules/
directory:build-image/run-build-functions.sh
Line 478 in d84c794
And then running npm install conditionally:
build-image/run-build-functions.sh
Lines 149 to 153 in d84c794
An existing PR fixes this: #510.
The text was updated successfully, but these errors were encountered: