Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipeline failing with sh: 1: eslint : not found error

Tej Naveen Chintakunta September 12, 2023

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

1 answer

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2023

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.


Tej Naveen Chintakunta September 12, 2023

@Syahrul  Thank you for the response.
 Issue resolved by updating the node image version in the bitbucket-pipeline.yaml file.

once again thank you :)

Like Syahrul likes this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events