This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
./node_modules/.bin/npx not found :( #1
Comments
5 tasks
Thanks for pointing that out! I believe something like this would handle a most cases, but it's totally possible I'm missing something important. Do you have any thoughts on that? #!/bin/sh
WHICH=`which npx`
NPMBIN=`npm bin`/npx
NPX=${WHICH:-$NPMBIN}
$NPX n latest && npm i -g npm@next |
Closed
This still won't run the npx included with The issue here is that your shell script can't figure out where it is -- it runs from Something like this will do the trick though:
'cause |
Merged
Thanks so much! I feel like a bit of a ditz for not realising that. Fixed in 0.2.0. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Unfortunately, there's no easy, surefire way to get the path to a dep's binary from a shell script. :\
The text was updated successfully, but these errors were encountered: