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

tar dependency is broken after npm audit fix #4005

Open
codebam opened this issue May 13, 2024 · 3 comments
Open

tar dependency is broken after npm audit fix #4005

codebam opened this issue May 13, 2024 · 3 comments

Comments

@codebam
Copy link

codebam commented May 13, 2024

Current Behavior

Expected Behavior

Steps to Reproduce

Failure Logs / Configuration

❯ npm run build

> build
> lerna run build

/home/codebam/git/cf-workers-telegram-bot/node_modules/tar/lib/read-entry.js:97
  [SLURP] (ex, global) {
   ^

TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/home/codebam/git/cf-workers-telegram-bot/node_modules/tar/lib/read-entry.js:97:4)
    at Module._compile (node:internal/modules/cjs/loader:1455:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1534:10)
    at Module.load (node:internal/modules/cjs/loader:1265:32)
    at Module._load (node:internal/modules/cjs/loader:1081:12)
    at Module.require (node:internal/modules/cjs/loader:1290:19)
    at require (node:internal/modules/helpers:188:18)
    at Object.<anonymous> (/home/codebam/git/cf-workers-telegram-bot/node_modules/tar/lib/pack.js:27:19)
    at Module._compile (node:internal/modules/cjs/loader:1455:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1534:10)

Node.js v22.0.0
lerna.json

{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "version": "7.7.0"
}

lerna-debug.log

<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->

Environment

@NSeydoux
Copy link

I am experiencing the same issue upgrading from 8.1.2 to 8.1.3: https://github.com/inrupt/solid-client-authn-js/actions/runs/9065573805/job/24906474156?pr=3489. I don't know how to generate a lerna-debug.log, but I'm happy to share one if explained how to if that's helpful.

@bezoerb
Copy link

bezoerb commented Jun 1, 2024

installing tar using npm install tar solved the issue for me

@gunzy83
Copy link

gunzy83 commented Jun 2, 2024

installing tar using npm install tar solved the issue for me

This worked for me also (saved as a dev dependency). Utterly ridiculous that this is a solution though.

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

No branches or pull requests

4 participants