You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I had a question about yarn dlx. Perhaps I'm not understanding it correctly, but I would like to use it to install a package and then run a script inside the package. For my use case, I would like to run the command:
yarn husky install
Without creating a package.json and saving the package saved to disk. I'm guessing this isn't working because the package wasn't set up the same way create-react-app or something typically used for this was. Is there anyway to make this work?
The reason I want to do this is my .git folder is in a parent dir to my folder with my yarn project. I need to run this command in the same folder as .git but I wanted to avoid creating a package.json, .yarn folder, etc since I'm just using it for this one off job.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there, I had a question about
yarn dlx
. Perhaps I'm not understanding it correctly, but I would like to use it to install a package and then run a script inside the package. For my use case, I would like to run the command:yarn husky install
Without creating a package.json and saving the package saved to disk. I'm guessing this isn't working because the package wasn't set up the same way
create-react-app
or something typically used for this was. Is there anyway to make this work?The reason I want to do this is my
.git
folder is in a parent dir to my folder with my yarn project. I need to run this command in the same folder as.git
but I wanted to avoid creating a package.json, .yarn folder, etc since I'm just using it for this one off job.Beta Was this translation helpful? Give feedback.
All reactions