-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[QUESTION] Why does not npm run the local installed executable with npm run command? #610
Comments
You should use |
Hey @LitoMore , thanks a lot for responding. However, with the existence of |
I don't know the original reason, but
|
Hey @ljharb, Thanks a lot for responding. My use case is I am writing docs on how to work with repository. I am using certain tools like https://github.com/atlassian/changesets who's name is actually the relevant command. Now I want to tell user to:
Now I also add a script in package.json as:
which seemed not so useful to me. Unless I am missing to see some user aspect here. 🙂 It is not blocking me but I would like to know if there is any strong reason like it will break existing apps or something on similar lines. If not, and we want to consider this then I am happy to contribute. 🙂 |
I would imagine that it would hide bugs, since I think your docs would be clearer if the "run the command that the project set up", was not the same one as "run the command whether the project's set it up or not". |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
What
If I install an executable as a local dependency in my project. Why does not npm run those executable when called as
npm run <executable>
?Install
jest
in your repository and then you we need add script like"jest": "jest"
in our package.json. I just want to know the reason here. I am happy to contribute if it is something we want in npm cli.Where
npm/cli
Who
References
https://stackoverflow.com/questions/9679932/how-to-use-package-installed-locally-in-node-modules
The text was updated successfully, but these errors were encountered: