Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Build error on Windows #11388

@phk422

Description

@phk422

Vue version

v3.4.32

Link to minimal reproduction

none

Steps to reproduce

Performing a build on Windows:

pnpm run build

What is expected?

The command can be normally allowed

What is actually happening?

> node scripts/build.js

node:internal/child_process:286
      const err = new ErrnoException(exitCode, syscall);
                  ^

Error: spawn rollup ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn rollup',
  path: 'rollup',
  spawnargs: [
    '-c',
    '--environment',
    'COMMIT:fd5c001,NODE_ENV:production,TARGET:compiler-core'
  ]
}

System Info

System:
    OS: Windows 10 10.0.17763
    CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
    Memory: 17.09 GB / 31.83 GB
  Binaries:
    Node: 22.5.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - ~\AppData\Local\pnpm\yarn.CMD
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.5.0 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Internet Explorer: 11.0.17763.2989

Any additional comments?

No response

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