Skip to content

Composer Launch error #6

@mrnrc

Description

@mrnrc

Just checking if this is supposed to run like this on MAC but seemingly requesting for Windows distro.

Issue: Attempting to run composre native.dev, this fails

➜ clueless git:(main) ✗ composer native:dev

Composer\Config::disableProcessTimeout
[vite]
[vite] > [email protected] dev
[vite] > vite
[vite]
[app]
[app] Starting NativePHP dev server...
[app]
[app] Fetching latest dependencies...
[app]
[app] Installing NPM dependencies (This may take a while)...
[app]
[app] Installing NPM dependencies using the npm package manager...
[app]
[app] Fetching latest dependencies...
[app]
[vite] /Users/jiv/GitProjects/clueless/node_modules/rollup/dist/native.js:64
[vite] throw new Error(
[vite] ^
[vite]
[vite] Error: Cannot find module @rollup/rollup-darwin-x64. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
[vite] at requireWithFriendlyError (/Users/jiv/GitProjects/clueless/node_modules/rollup/dist/native.js:64:9)
[vite] at Object. (/Users/jiv/GitProjects/clueless/node_modules/rollup/dist/native.js:73:76)
[vite] at Module._compile (node:internal/modules/cjs/loader:1730:14)
[vite] at Object..js (node:internal/modules/cjs/loader:1895:10)
[vite] at Module.load (node:internal/modules/cjs/loader:1465:32)
[vite] at Function._load (node:internal/modules/cjs/loader:1282:12)
[vite] at TracingChannel.traceSync (node:diagnostics_channel:322:14)
[vite] at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
[vite] at cjsLoader (node:internal/modules/esm/translators:266:5)
[vite] at ModuleWrap. (node:internal/modules/esm/translators:200:7) {
[vite] [cause]: Error: Cannot find module '@rollup/rollup-darwin-x64'
[vite] Require stack:
[vite] - /Users/jiv/GitProjects/clueless/node_modules/rollup/dist/native.js

Removed npm, and its node modules
Attempted installing the optional module and it errors up with an understandably vissble error

npm install @rollup/rollup-darwin-x64
npm error code EBADPLATFORM
npm error notsup Unsupported platform for @rollup/[email protected]: wanted {"os":"darwin","cpu":"x64"} (current: {"os":"darwin","cpu":"arm64"})
npm error notsup Valid os: darwin
npm error notsup Actual os: darwin
npm error notsup Valid cpu: x64
npm error notsup Actual cpu: arm64
npm error A complete log of this run can be found in: /Users/jiv/.npm/_logs/2025-07-16T13_02_41_904Z-debug-0.log

PS: Ignore if this has already been called out previously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions