HI ,
one of my pipeline is failing with below error:
But I have 'eslint' in package.json file and I'm using '- pipe: atlassian/npm-publish:0.2.6' while publish to npm.
node image: 16
G'day @Tej Naveen Chintakunta
Welcome to the community!
The error generally means no ESLint was found in your current pipeline steps. While I understand that you've added ESLint in your package.json, I wonder if this is within the same step.
I ask because for each step of a pipeline, a new Docker container starts, the repository is cloned in this container, and then the script commands are executed. So, if you are installing ESLint in one step and running it in another step, it won't work unless you install ESLint again in the new step's container.
I hope this helps.
Regards,
Syahrul
@Syahrul Thank you for the response.
Issue resolved by updating the node image version in the bitbucket-pipeline.yaml file.
once again thank you :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.