This is my folder structure:
project/
└── test_cases
└── package.json
The working dir is project/
. I want to run eslint (an npm package) from working dir. I dont wish to cd into test_case. I install the same package from work dir by
sudo npm install --prefix test_cases/
.
Theres no such option for npx. npx eslint
from working dir downloads from the internet.
I want to run them from the test_cases dir. Help!
I managed to work around this problem by using
npm exec --prefix test_cases eslint
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With