The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

eslint returns errno 2

Kenji Tomonaga
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!
April 15, 2025

hello,

I'm hoping somebody could help me figure out what this error means.

+ npm run lint

> frontend@1.16.1 lint /opt/atlassian/pipelines/agent/build
> eslint --ext .js,.vue --ignore-path .gitignore src


Oops! Something went wrong! :(

ESLint: 8.57.1

/opt/atlassian/pipelines/agent/build/node_modules/@eslint-community/eslint-utils/index.js:274
end = getOpeningParenOfParams(node, sourceCode)?.loc.start;
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/opt/atlassian/pipelines/agent/build/node_modules/eslint/lib/source-code/source-code.js:12:26)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! frontend@1.16.1 lint: `eslint --ext .js,.vue --ignore-path .gitignore src`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the automation_frontend@1.16.1 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

If I run this command on my local machine, it works.

user@bench:~/projects/frontend$ npm run lint
> frontend@1.16.1 lint
> eslint --ext .js,.vue --ignore-path .gitignore src

my pipeline script looks like this.

image: node:12

pipelines:
default:
- parallel:
- step:
name: Code linting
script:
- npm install eslint
- npm run lint
caches:
- node

this script was working until recently.

I removed the cache, but it did not help.

I have no idea what has changed to cause this error...  Please help.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Kenji Tomonaga
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!
April 16, 2025

for whatever reason, now it's working....  please disregard this question.

TAGS
AUG Leaders

Atlassian Community Events