The main problem we’re having is even though we perform a pre: rm -rf node_modules/
or a Rebuild without cache
the problematic fsevents
seems to come back when we push a new commit.
-
The stack you’re using
Rails with NPM -
The exact error message you are getting
Whennode_modules
is loaded from the cache, it always seems to be an old version.
This causesnpm install
to fail because it’s trying to loadfsevents
which is for OSX only but due to a different problem made it into thenpm-shrinkwrap.json
. It’s been removed, but for it’s still cached inCircleci
. -
Which troubleshooting steps you’ve already taken
We have toRebuild without cache
or perform apre:
block thatrm -rf node_modules/
.
But it never seems to be saved for the next run? -
Any recent changes either in the codebase or the stack
Yes, we upgraded a number ofnode_modules
and updated thenpm-shrinkwrap.json
-
What happens when you run the tests locally
Works fine. -
What is supposed to happen when your build runs
npm install
runs properly (instead of failing)
Thanks,
Justin