Forums

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

React app pipeline build failure at npm ci step

Thomas Chestnut August 13, 2024

Hi, I work on a React app using node 14.18.3. Today when I opened a PR I'm getting a bitbucket pipeline build failure for a pipeline that's worked fine for almost 2 years.

After the npm ci step i get this error: 

 

npm ci /usr/local/lib/node_modules/npm/lib/es6/validate-engines.js:31 throw err

Full error is below.

 

From what I've found online, it sounds like it could either be an issue with npm, or maybe the fact that the app is using an outdated node version but i've made PRs last week and builds succeeded just fine. Maybe there is some dependency that was updated and now incompatible. It also seems that validate-engines is using fs-minipass package so not sure if there's some issue with that.

If anyone else has run into this or a similar error, I appreciate any help! 

 

 

 

+ npm ci
2
/usr/local/lib/node_modules/npm/lib/es6/validate-engines.js:31
3
throw err
4
^
5
6
TypeError: Class extends value undefined is not a constructor or null
7
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
8
at Module._compile (internal/modules/cjs/loader.js:1085:14)
9
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
10
at Module.load (internal/modules/cjs/loader.js:950:32)
11
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
12
at Module.require (internal/modules/cjs/loader.js:974:19)
13
at require (internal/modules/cjs/helpers.js:93:18)
14
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
15
at Module._compile (internal/modules/cjs/loader.js:1085:14)
16
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

1 answer

1 vote
Thomas Chestnut August 14, 2024

I resolved this by upgrading the app to use node v18 and now the build is successful. i'm assuming there was some dependency that was updated and not compatible with node v14.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events