Create
cancel
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2023

HI ,

one of my pipeline is failing with below error:

pipeline_failure.PNG

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
Syahrul
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.

Regards,
Syahrul

Tej Naveen Chintakunta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events