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

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
AUG Leaders

Atlassian Community Events