Build success only after re deploy site with clear cache

We have a site (running storybook) that the build is falling every time after the last packages update
but when I click on the clear cache and deploy it pass
the problem looks like it missing node packages in the first run

hi there, this is hopefully relevant: