Bitbucket Pipelines are broken since this morning, using `npm ci` results in the following error:
npm ERR! code ERR_FS_EISDIR
npm ERR! syscall rm
npm ERR! path /opt/atlassian/pipelines/agent/build/node_modules/.bin
npm ERR! errno 21
npm ERR! Path is a directory: rm returned EISDIR (is a directory) /opt/atlassian/pipelines/agent/build/node_modules/.bin
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-01-16T11_00_41_121Z-debug-0.log
Note that it was working previously
it seems that there is a problem with npm ci and not with bamboo.
use `rm -rf ui/node_modules`
I have it as well
I had this issue. It looks like there's a bug in npm v9.3.0. Downgrade to 9.2.0 and it'll work fine