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 --workspacesContinues until it crashes, and then you get a extremely large number of errors.The first of which is:npm ERR! code ELIFECYCLEnpm ERR! syscall spawn shnpm ERR! file shnpm ERR! path shnpm ERR! errno EAGAINnpm ERR! frontend-next@0.1.0 lint: `npm run lint --workspaces`npm ERR! spawn sh EAGAINnpm 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.lognpm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! frontend-next@0.1.0 lint: `npm run lint --workspaces`npm ERR! Exit status 1npm 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 install2) npm run lintAnd lint script is 'npm run lint --workspaces', I have three apps. Pipeline uses image:node-12.22.5nvm - 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.