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

CLI does not work when installing with NPM #1305

Closed
ericwilhite opened this issue Jan 7, 2025 · 1 comment
Closed

CLI does not work when installing with NPM #1305

ericwilhite opened this issue Jan 7, 2025 · 1 comment

Comments

@ericwilhite
Copy link

ericwilhite commented Jan 7, 2025

Screenshot

image

Description

I typically use npm to manage packages and run scripts. Trying to do so when installing graffle doesn't seem to work.

When I switched package managers to pnpm it did work. My best guess is there is some post-install scripting that npm is not running to create the .bin files necessary for the generator...?

Reproduction Steps/Repo Link

  1. npm i graffle@next
  2. Try to run any graffle cli command
  3. Get error "Cannot find module '/node_modules/.bin/build/generator/cli/generate.js'

Edit

I also updated to the latest LTS (v22.12.0) and confirmed the other settings as described in the setup doc.

@jasonkuhrt
Copy link
Member

Graffle has no post-install scripts. This is strange, but looks easy to reproduce, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants