repo: tmt-redwood-js
I largely followed this guide but builds are consistently failing:
4:54:55 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
4:54:55 PM: ➤ YN0085: │ + fsevents@patch:fsevents@npm%3A2.3.3#optional!builtin<compat/fsevents>::version=2.3.3&hash=df0bf1, and 4 more.
4:54:55 PM: ➤ YN0085: │ - fsevents@patch:fsevents@npm%3A1.2.13#~builtin<compat/fsevents>::version=1.2.13&hash=d11327, and 4 more.
4:54:55 PM: ➤ YN0000: └ Completed in 28s 794ms
4:54:55 PM: ➤ YN0000: ┌ Post-resolution validation
4:54:55 PM: ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
I’ve tried adding fsevents
as an explicit dependency, both @2.3.3
and @1.2.13
. I’ve also tried setting the ENABLE_EXPERIMENTAL_COREPACK
environment variable to 1
as suggested by this thread on RedwoodJS + Vercel (which I know is different than Netlify but the underlying error seemed similar.) Nothing has worked.
ETA: e.g. pinning fsevents@1.2.13
results in
5:17:42 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
5:17:42 PM: ➤ YN0085: │ + fsevents@patch:fsevents@npm%3A1.2.13#optional!builtin<compat/fsevents>::version=1.2.13&hash=d11327, and 4 more.
5:17:42 PM: ➤ YN0085: │ - fsevents@patch:fsevents@npm%3A1.2.13#~builtin<compat/fsevents>::version=1.2.13&hash=d11327, and 4 more.
Any suggestions would be very appreciated.
ETA: I spent some time running different builds and trying to modify my yarn.lock
file to be in line with what the build is expecting. The end result is this:
1:25:17 PM: Installing npm packages using Yarn version 4.1.1
1:25:18 PM: ➤ YN0000: · Yarn 4.1.1
1:25:18 PM: ➤ YN0000: ┌ Resolution step
1:25:42 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
1:25:42 PM: ➤ YN0000: └ Completed in 24s 480ms
1:25:42 PM: ➤ YN0000: ┌ Post-resolution validation
1:25:42 PM: ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
1:25:42 PM: ➤ YN0000: └ Completed
1:25:42 PM: ➤ YN0000: · Failed with errors in 24s 574ms
1:25:42 PM: Error during Yarn install
I’m really at my wits’ end, here. Any suggestions at all would be really appreciated.