Skip to content

Bug: Installation toolchain still fails on Windows #29405

@hamishwillee

Description

@hamishwillee

What type of issue is this?

Infrastructure issue

What is the issue?

  1. Starting a brand new repo I get this error on Windows:
   C:\Users\hamis\github\temp_deleteme\browser-compat-data>npm install

   > @mdn/browser-compat-data@7.3.10 prepare
   > npm run gentypes && npm run build


   > @mdn/browser-compat-data@7.3.10 gentypes
   > node scripts/generate-types.js

   node:internal/child_process:1120
    result.error = new ErrnoException(result.error, 'spawnSync ' + options.file);
                   ^

Error: spawnSync tsc ENOENT
    at Object.spawnSync (node:internal/child_process:1120:20)
    at spawnSync (node:child_process:911:24)
    at default (file:///C:/Users/hamis/github/temp_deleteme/browser-compat-data/utils/spawn.js:13:18)
    at compile (file:///C:/Users/hamis/github/temp_deleteme/browser-compat-data/scripts/generate-types.js:177:3)
    at async file:///C:/Users/hamis/github/temp_deleteme/browser-compat-data/scripts/generate-types.js:184:3 {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawnSync tsc',
  path: 'tsc',
  spawnargs: [ '--skipLibCheck', '--ignoreConfig', '../types/types.d.ts' ]
}

Node.js v24.12.0
npm error code 1
npm error path C:\Users\hamis\github\temp_deleteme\browser-compat-data
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c npm run gentypes && npm run build
npm error A complete log of this run can be found in: C:\Users\hamis\AppData\Local\npm-cache\_logs\2026-04-05T23_43_51_505Z-debug-0.log

One side effect of this is that ESLint is not installed. That's a further problem because when I do npm run fix it fails silently.

This is on Windows 11. Node v24.12.0

What behavior were you expecting?

Toolchain to work.

Windows 11.

What version(s) of BCD is the issue present in?

  • The current BCD release
  • The current version of the main branch

Do you have anything more you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions