Skip to content

Can't build with yarn3 berry (EROFS) #31

@alaadotsol

Description

@alaadotsol

Describe the bug
When using yarn3 (berry), the @rsw/cli dependency doesn't build with the following error:\

➤ YN0000: ┌ Link step
➤ YN0007: │ @rsw/cli@npm:0.7.3 must be built because it never has been before or the last one failed
➤ YN0009: │ @rsw/cli@npm:0.7.3 couldn't be built successfully (exit code 1)
➤ YN0000: └ Completed in 0s 225ms
➤ YN0000: Failed with errors in 0s 350ms

Logs:

# Script name: postinstall
/home/alaa/x/x/.pnp.cjs:1985
  return Object.assign(new Error(`${code}: ${message}`), {code});
                       ^
Error: EROFS: read-only filesystem, mkdir '/node_modules/binary-install/bin'
    at makeError$1 (/home/alaa/hs/x/.pnp.cjs:1985:24)
    at EROFS (/home/alaa/hs/x/.pnp.cjs:2012:10)
    at ZipFS.mkdirSync (/home/alaa/hs/x/.pnp.cjs:3872:13)
    at ZipFS.mkdirpSync (/home/alaa/hs/x/.pnp.cjs:2202:16)
    at ZipFS.mkdirSync (/home/alaa/hs/x/.pnp.cjs:3868:12)
    at /home/alaa/hs/x/.pnp.cjs:4870:20
    at /home/alaa/hs/x/.pnp.cjs:5026:60
    at ZipOpenFS.getZipSync (/home/alaa/hs/x/.pnp.cjs:5155:14)
    at ZipOpenFS.makeCallSync (/home/alaa/hs/x/.pnp.cjs:5026:17)
    at ZipOpenFS.mkdirSync (/home/alaa/hs/x/.pnp.cjs:4867:17) {
  code: 'EROFS'
}

To Reproduce
Steps to reproduce the behavior:

  1. Start a new project with yarn3 (berry) via yarn init
  2. yarn add vite-plugin-rsw
  3. See error

Expected behavior
Not to error.

Desktop (please complete the following information):

  • OS: Windows 11 - WSL2 (Ubuntu 21.04)
  • Version: Latest
  • Node: 17.7.1
  • Yarn: 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions