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