Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jamestalmage
Copy link

Link moonx for folks who install via a node package manager.

Link moonx for folks who install via a node package manager.
@milesj
Copy link
Collaborator

milesj commented Nov 24, 2025

@jamestalmage I actually had this before but it breaks the moon binary, since npm is dumb and doesn't know what the "default" bin is anymore.

npm's logic is stupid, as the default bin name === the package name, and since the package name isn't "moon" this won't work.

@jamestalmage
Copy link
Author

jamestalmage commented Nov 24, 2025

I'm doing this (installing multiple binaries) in internal command line packages, and it works fine in npm 11.2

@jamestalmage
Copy link
Author

jamestalmage commented Nov 24, 2025

Confirmed that this works for moon.

npm install @jamestalmage/moonrepo-cli

Running moonx gives expected results

image

@milesj
Copy link
Collaborator

milesj commented Nov 24, 2025

I wonder if they fixed this in latest npm. Will need to also verify older versions of npm, and then pnpm/yarn.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants