Skip to content

Conversation

Clutz88
Copy link
Contributor

@Clutz88 Clutz88 commented Oct 9, 2025

When creating a new site using Laravel Herd on windows npm install failed with the following error:

Error: Cannot find module '../lightningcss.win32-x64-msvc.node'
Require stack:
- C:\Users\clutz\Herd\test-dependencies\node_modules\lightningcss\node\index.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at Object.<anonymous> (C:\Users\clutz\Herd\test-dependencies\node_modules\lightningcss\node\index.js:22:22)
    at Module._compile (node:internal/modules/cjs/loader:1706:14)�[39m

Adding the win32 versions fixes this and allows npm install and npm run dev to work as expected

@joetannenbaum
Copy link
Contributor

Thanks!

@joetannenbaum joetannenbaum merged commit 8839ce1 into laravel:main Oct 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants