Basically that, it appears you can't run npm --workspace commands in the pipeline:
<span>+ npm run lint</span>
<span>> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build</span>
<span>> npm run lint --workspaces</span>
<span>> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build</span>
<span>> npm run lint --workspaces</span>
<span>> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build</span>
<span>> npm run lint --workspaces</span>
<span>> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build</span>
<span>> npm run lint --workspaces</span>
Continues until it crashes, and then you get a extremely large number of errors.
<code>The first of which is:<span>npm ERR! code ELIFECYCLE</span>
<span>npm ERR! syscall spawn sh</span>
<span>npm ERR! file sh</span>
<span>npm ERR! path sh</span>
<span>npm ERR! errno EAGAIN</span>
<span>npm ERR! frontend-next@0.1.0 lint: `npm run lint --workspaces`</span>
<span>npm ERR! spawn sh EAGAIN</span>
<span>npm ERR! </span>
<span>npm ERR! Failed at the frontend-next@0.1.0 lint script.</span>
<span>npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</span>
<span>and then this repeated about 100 times:</span>
<span>npm ERR! A complete log of this run can be found in:</span>
<span>npm ERR! /root/.npm/_logs/2021-08-19T23_27_12_631Z-debug.log</span>
<span>npm ERR! code ELIFECYCLE</span>
<span>npm ERR! errno 1</span>
<span>npm ERR! frontend-next@0.1.0 lint: `npm run lint --workspaces`</span>
<span>npm ERR! Exit status 1</span>
<span>npm ERR! </span>
<span>npm ERR! Failed at the frontend-next@0.1.0 lint script.</span>
<span>npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</span>
<span>The pipeline is only on step 2:</span>
<span>1) npm install</span>
<span>2) npm run lint</span>
<span>And lint script is 'npm run lint --workspaces', I have three apps. Pipeline uses image:node-12.22.5</span>