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_modulesis loaded from the cache, it always seems to be an old version.
This causesnpm installto fail because it’s trying to loadfseventswhich 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 cacheor 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_modulesand updated thenpm-shrinkwrap.json -
What happens when you run the tests locally
Works fine. -
What is supposed to happen when your build runs
npm installruns properly (instead of failing)
Thanks,
Justin