GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Error: Cannot find module ... 'pnpm.cjs' when using pnpm 12 in Volta v1.1.1 on macOS · Issue #2114 · volta-cli/volta

Error: Cannot find module ... 'pnpm.cjs' when using pnpm 12 in Volta v1.1.1 on macOS #2114

New issue
Copy link
New issue
Copy link
Open
chawyehsu/volta
#116
chawyehsu/volta#116
Open
Error: Cannot find module ... 'pnpm.cjs' when using pnpm 12 in Volta v1.1.1 on macOS#2114
chawyehsu/volta
#116
Copy link

Description

@shirakaba
shirakaba
opened on Sep 18, 2026
Issue body actions

When trying to use pnpm 12 installed via Volta v1.1.1 on macOS Tahoe 26.7, it looks for a pnpm.cjs file that is not present.

# Install pnpm 12 via Volta
volta install [email protected]              
success: installed and set [email protected] as default

# Try running a `pnpm install` in my repo:
pnpm install --no-frozen-lockfile     
node:internal/modules/cjs/loader:1459
  throw err;
  ^

Error: Cannot find module '/Users/jamie/.volta/tools/image/pnpm/12.4.2/bin/pnpm.cjs'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1066:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1071:22)
    at Module._load (node:internal/modules/cjs/loader:1242:25)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
    at node:internal/main/run_main_module:33:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
Reacted by James Hulse

Activity

  1. shirakaba commented on Sep 18, 2026

    @shirakaba
    shirakaba
    on Sep 18, 2026
    Author
    More actions

    Workaround

    Copy the following pnpm.cjs file into the expected location, ~/.volta/tools/image/pnpm/12.4.2/bin/pnpm.cjs:

    #!/usr/bin/env node
    // CommonJS shim for compatibility with older Corepack versions
    import('./pnpm.mjs')

    pnpm install worked successfully for me after that.

    The story behind the file

    I found this file provided with pnpm v11.18.0, and it looked version-agnostic, so I tried it out, and indeed it worked for pnpm v12.

    Reacted by Oluwamayowa Esan, Lyulf, James Hulse, Boris Siljanovski, Setiawan Djodi and Mesqalito
  2. shirakaba
    changed the title [-]Error: Cannot find module ... 'pnpm.cjs' when using pnpm 12[/-] [+]Error: Cannot find module ... 'pnpm.cjs' when using pnpm 12 in Volta v1.1.1 on macOS[/+] on Sep 18, 2026
  3. s1gr1d
    added a commit that references this issue on Oct 15, 2026

    ci(e2e): Run E2E tests with pnpm 12 (#25334)

    1c5303c
  4. JPeer264
    added 2 commits that reference this issue on Oct 19, 2026

    chore: Move the monorepo from Yarn 1 to pnpm 12 (#25354)

    a5ed55a

    chore: Pin pnpm 10 in Volta and remove .npmrc (#25641)

    21f2cf1
  5. mydea
    added a commit that references this issue on Oct 28, 2026

    chore: Replace Volta with pnpm-managed node versions (#25689)

    be8a27e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.