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
/usr/local/lib/node_modules/npm/lib/es6/validate-engines.js:31
throw err
^
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.