Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install frontend-maven-plugin #4407

Open
mghiremath opened this issue Mar 31, 2024 · 2 comments
Open

Cannot install frontend-maven-plugin #4407

mghiremath opened this issue Mar 31, 2024 · 2 comments
Labels

Comments

@mghiremath
Copy link

mghiremath commented Mar 31, 2024

Affected URL(s)

No response

Description of the problem

Cannot install frontend-maven-plugin on Node v20.12.0

error:

 --- frontend-maven-plugin:1.14.0:npm (npm install) @ frontend ---
[INFO] Running 'npm install' in /Users/bharath/Documents/Lazy Programs/MyTube_Project/MyTube/frontend/mytube-ui
[INFO] /Users/bharath/Documents/Lazy Programs/MyTube_Project/MyTube/frontend/mytube-ui/node/node_modules/npm/lib/es6/validate-engines.js:31
[INFO]     throw err
[INFO]     ^
[INFO] 
[INFO] TypeError: Class extends value undefined is not a constructor or null
[INFO]     at Object.<anonymous> (/Users/bharath/Documents/Lazy Programs/MyTube_Project/MyTube/frontend/mytube-ui/node/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
[INFO]     at Module._compile (node:internal/modules/cjs/loader:1369:14)
[INFO]     at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
[INFO]     at Module.load (node:internal/modules/cjs/loader:1206:32)
[INFO]     at Module._load (node:internal/modules/cjs/loader:1022:12)
[INFO]     at Module.require (node:internal/modules/cjs/loader:1231:19)
[INFO]     at require (node:internal/modules/helpers:179:18)
[INFO]     at Object.<anonymous> (/Users/bharath/Documents/Lazy Programs/MyTube_Project/MyTube/frontend/mytube-ui/node/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
[INFO]     at Module._compile (node:internal/modules/cjs/loader:1369:14)
[INFO]     at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
[INFO] 
[INFO] Node.js v20.12.0
@mghiremath mghiremath added the doc label Mar 31, 2024
@VoltrexKeyva VoltrexKeyva added npm and removed doc labels Apr 3, 2024
@karendolan
Copy link

I had the same error after moving to a new device and copying over my project. I suspect deleting the old node and node_modules from my project was what actually what worked. But I included all 4 steps, in case it is relevant.

The following stepped stopped the TypeError: Class extends value undefined is not a constructor or null related to minipass on the maven build in my project:

  1. I made the project build node the same as my system's global node, which was v22.2.0
  2. I upgrade my global npm npm update -g npm
  3. I deleted my project's local node directory
  4. I deleted my project's local node_modules directory

@VoltrexKeyva VoltrexKeyva transferred this issue from nodejs/node May 25, 2024
@RedYetiDev
Copy link
Member

@mghiremath did @karendolan's solution work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants