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

Unable to do pnpm install in project #144

Open
benazoulaydev opened this issue Feb 2, 2024 · 8 comments
Open

Unable to do pnpm install in project #144

benazoulaydev opened this issue Feb 2, 2024 · 8 comments

Comments

@benazoulaydev
Copy link

benazoulaydev commented Feb 2, 2024

Hi, I keep getting an issue while running pnpm install or pnpm build when I clone the whole project

@rekajs/codemirror:build:   1:1  error  Resolve error: Cannot find module './lib/sync' 



 Tasks:    6 successful, 7 total
Cached:    3 cached, 7 total
  Time:    6.732s 
Failed:    @rekajs/codemirror#build

 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.
 
@benazoulaydev benazoulaydev changed the title Table to do pnpm install in project Unable to do pnpm install in project Feb 2, 2024
@prevwong
Copy link
Owner

prevwong commented Feb 8, 2024

What version of pnpm/node are you running on?

@benazoulaydev
Copy link
Author

benazoulaydev commented Feb 8, 2024 via email

@prevwong
Copy link
Owner

prevwong commented Feb 8, 2024

Could you try the following and see if this works:

pnpm install --ignore-scripts
pnpm build:packages

@benazoulaydev
Copy link
Author

 ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build: ERROR: "generate-lezer-parser" exited with 1.
@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build: ERROR: command finished with error: command (/Users/dev/Downloads/reka.js-main 2/packages/codemirror) /usr/local/bin/pnpm run build exited (1)
@rekajs/codemirror#build: command (/Users/dev/Downloads/reka.js-main 2/packages/codemirror) /usr/local/bin/pnpm run build exited (1)

Tasks: 3 successful, 5 total
Cached: 0 cached, 5 total
Time: 6.744s
Failed: @rekajs/codemirror#build

ERROR run failed: command exited (1)
 ELIFECYCLE  Command failed with exit code 1.

@benazoulaydev
Copy link
Author

@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.
@rekajs/codemirror:build: ERROR: "generate-lezer-parser" exited with 1.
@rekajs/codemirror:build:  ELIFECYCLE  Command failed with exit code 1.

@benazoulaydev
Copy link
Author

@rekajs/codemirror:build: 1:1 error Resolve error: Cannot find module './lib/sync'

@maziar-dandc
Copy link

Could you try the following and see if this works:

pnpm install --ignore-scripts
pnpm build:packages

This helped, but then pnpm run dev nextjs error'd on module not found for the packages in packages directory such as @rekajs/react-code-editor.

Even now pnpm install errors module not found on trying to locate tsc in the wrong folder when running post-install script for getdocs-ts. Might have to do with being on windows, I'm usually on linux, haven't tried installing [reka.js] on linux yet.

@maziar-dandc
Copy link

pnpm install + pnpm run dev worked fine on linux, who would've thought 😆

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