- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 309
Closed
Description
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.
brunolemos, tonydehnke, tomislater, daydevelops and sanioka
Activity
[-]command not found: patch-package[/-][+]Command not found: patch-package[/+]ds300 commentedon Sep 6, 2017
either:
yarn patch-package <args>
./node_modules/.bin/patch-package <args>
./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 commentedon Sep 6, 2017
It works. thank you.
ds300 commentedon 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 commentedon 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>
fix build patch-package
im-vignesh commentedon Apr 7, 2023
run "npx patch-package". It'll work