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

Command not found: patch-package #14

Closed
juncoding opened this issue Sep 6, 2017 · 5 comments
Closed

Command not found: patch-package #14

juncoding opened this issue Sep 6, 2017 · 5 comments

Comments

@juncoding
Copy link

juncoding commented Sep 6, 2017

Hello,

run patch-package to create a .patch file

patch-package some-package

After "npm install patch-package",
I run the command "patch-package" on terminal but got "zsh: command not found: patch-package".

I'm using macOS Sierra.

Please advise.
Thanks.

@juncoding juncoding changed the title command not found: patch-package Command not found: patch-package Sep 6, 2017
@ds300
Copy link
Owner

ds300 commented Sep 6, 2017

either:

  • if you're using yarn you can run yarn patch-package <args>
  • otherwise ./node_modules/.bin/patch-package <args>
  • or add ./node_modules/.bin to your $PATH environment variable (I prefer doing this)

It didn't occur to me that lots of people have not done that last option, so the instructions in the README won't work for them. I'll improve the README later, thanks.

@juncoding
Copy link
Author

It works. thank you.

@ds300
Copy link
Owner

ds300 commented Sep 11, 2017

I decided not to modify the README because I can't figure out how to do so without sacrificing clarity. I hope that anyone who has the same issue you had will end up here via google or github search.

@pradeepdev001
Copy link

pradeepdev001 commented Oct 10, 2022

if you're using yarn--

Step 1: yarn add patch-package
Step 2: yarn patch-package <your patches || leave blank to run all at once>
OR ./node_modules/.bin/patch-package <your patches || leave blank to run all at once>

if you're using npm--

Step 1: npm install patch-package
Step 2: patch-package <your patches || leave blank to run all at once>
OR ./node_modules/.bin/patch-package <your patches || leave blank to run all at once>

dominikjasek added a commit to dominikjasek/skauttrebic2022 that referenced this issue Oct 13, 2022
@im-vignesh
Copy link

run "npx patch-package". It'll 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

4 participants