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

[Bug?]: EISDIR: illegal operation on a directory, read #6631

Open
1 task
simon04 opened this issue Dec 11, 2024 · 0 comments
Open
1 task

[Bug?]: EISDIR: illegal operation on a directory, read #6631

simon04 opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@simon04
Copy link

simon04 commented Dec 11, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

yarn add @eaws/[email protected] works.
yarn add @eaws/[email protected] fails with "EISDIR: illegal operation on a directory, read"

# .yarnrc.yml
npmScopes:
  eaws:
    npmRegistryServer: "https://gitlab.com/api/v4/packages/npm/"

To reproduce

> podman run --rm -it node:lts-alpine sh
/ # mkdir foo
/ # cd foo

/foo # cat > package.json
{
  "name": "foo",
  "packageManager": "[email protected]",
  "dependencies": {
    "@eaws/micro-regions_names": "7.0.0"
  }
}

/foo # cat > .yarnrc.yml
npmScopes:
  eaws:
    npmRegistryServer: "https://gitlab.com/api/v4/packages/npm/"
/foo # corepack enable
/foo # yarn
! Corepack is about to download https://repo.yarnpkg.com/4.5.3/packages/yarnpkg-cli/bin/yarn.js
? Do you want to continue? [Y/n] y

➤ YN0065: Yarn will periodically gather anonymous telemetry: https://yarnpkg.com/advanced/telemetry
➤ YN0065: Run yarn config set --home enableTelemetry 0 to disable

➤ YN0000: · Yarn 4.5.3
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @eaws/micro-regions_names@npm:7.0.0::__archiveUrl=https%3A%2F%2Fgitlab.com%2Fapi%2Fv4%2Fprojects%2F25330421%2Fpackages%2Fnpm%2F%40eaws%2Fmicro-regions_names%2F-%2F%40eaws%2Fmicro-regions_names-7.0.0.tgz
➤ YN0000: └ Completed in 0s 372ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ A package was added to the project (+ 200.48 KiB).
➤ YN0000: └ Completed in 0s 385ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 0s 793ms

/foo # yarn add @eaws/[email protected]
➤ YN0000: · Yarn 4.5.3
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 0s 51ms

/foo # yarn add @eaws/[email protected]
➤ YN0000: · Yarn 4.5.3
➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: @eaws/micro-regions_names@file:::locator=%40eaws%2Fmicro-regions_names%40npm%3A7.0.5%3A%3A__archiveUrl%3Dhttps%253A%252F%252Fgitlab.com%252Fapi%252Fv4%252Fprojects%252F25330421%252Fpackages%252Fnpm%252F%2540eaws%252Fmicro-regions_names%252F-%252F%2540eaws%252Fmicro-regions_names-7.0.5.tgz: EISDIR: illegal operation on a directory, read
    at Nl (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:4:1321)
    at Object.e_e (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:4:1720)
    at Zi.readFileBuffer (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:149:214398)
    at Zi.readFilePromise (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:149:213896)
    at Am.readFilePromise (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:9:5367)
    at ju.readFilePromise (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:9:5367)
    at /root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:568:3400
    at Object.gZe (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:140:53810)
    at $2 (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:568:3362)
    at async nB.getCandidates (/root/.cache/node/corepack/v1/yarn/4.5.3/yarn.js:568:8162)
➤ YN0000: └ Completed in 0s 549ms
➤ YN0000: · Failed with errors in 0s 562ms
/foo #

Gist: https://gist.github.com/simon04/e108da36e8e793817014fb513113c78a

Environment

System:
    OS: Linux 6.11 Alpine Linux
    CPU: (16) x64 AMD Ryzen 7 PRO 4750G with Radeon Graphics
  Binaries:
    Node: 22.12.0 - /tmp/xfs-f6bbd243/node
    Yarn: 4.5.3 - /tmp/xfs-f6bbd243/yarn
    npm: 10.9.0 - /usr/local/bin/npm

Additional context

No response

@simon04 simon04 added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant