Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting started instructions fail to start app #124

Open
rbavery opened this issue Jul 26, 2024 · 2 comments
Open

getting started instructions fail to start app #124

rbavery opened this issue Jul 26, 2024 · 2 comments

Comments

@rbavery
Copy link

rbavery commented Jul 26, 2024

Running these: https://github.com/eclipsesource/jsonforms?tab=readme-ov-file#getting-started

Produces

# ryanavery at Ryans-MacBook-Pro.local in ~/jsonforms-react-seed on git:master ● [14:13:24]
→ npm run start

> [email protected] start
> vite preview --port 3000

/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:59
		throw new Error(
		      ^

Error: Cannot find module @rollup/rollup-darwin-arm64. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
    at requireWithFriendlyError (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:59:9)
    at Object.<anonymous> (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:68:76)
    at Module._compile (node:internal/modules/cjs/loader:1467:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1551:10)
    at Module.load (node:internal/modules/cjs/loader:1282:32)
    at Module._load (node:internal/modules/cjs/loader:1098:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at cjsLoader (node:internal/modules/esm/translators:318:5)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:258:7) {
  [cause]: Error: Cannot find module '@rollup/rollup-darwin-arm64'
  Require stack:
  - /Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
      at Module._load (node:internal/modules/cjs/loader:1045:27)
      at TracingChannel.traceSync (node:diagnostics_channel:315:14)
      at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
      at Module.require (node:internal/modules/cjs/loader:1304:12)
      at require (node:internal/modules/helpers:123:16)
      at requireWithFriendlyError (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:41:10)
      at Object.<anonymous> (/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js:68:76)
      at Module._compile (node:internal/modules/cjs/loader:1467:14)
      at Module._extensions..js (node:internal/modules/cjs/loader:1551:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
      '/Users/ryanavery/jsonforms-react-seed/node_modules/rollup/dist/native.js'
    ]
  }
}

Node.js v22.4.1
@sdirix
Copy link
Member

sdirix commented Aug 7, 2024

Hi @rbavery,
Can you try npm install && npm run dev?

@enersis-pst
Copy link

enersis-pst commented Aug 9, 2024

same error also with npm install && npm run dev
use node 20.0.0 on mac m1 pro

Update:
with install npm i @rollup/rollup-darwin-arm64
at least dev mode work

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

No branches or pull requests

3 participants