Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Add '/usr/local/bin/' to remix's path on OSX so it can find npx. #174

Open
TheRook opened this issue Nov 30, 2022 · 2 comments
Open

Add '/usr/local/bin/' to remix's path on OSX so it can find npx. #174

TheRook opened this issue Nov 30, 2022 · 2 comments

Comments

@TheRook
Copy link

TheRook commented Nov 30, 2022

This is a pretty stright forward fix. OSX users need '/usr/local/bin/' because '/usr/local/bin/npx' is going to be the path 99.999999999999999999999% of the time.

If for whatever reason you don't like this solution you need to allow the user to update the PATH variable with a config option AND also, take the PATH variable from the caller's environment. But that is more difficult than just looking for npx in the place it is installed on every mac on the planet.

Any of these solutions will fix:
[Hardhat Compilation]: /bin/sh: npx: command not found

@TheRook
Copy link
Author

TheRook commented Nov 30, 2022

If you are going to tell me that it isn't installed in '/usr/local/bin/npx' - your wrong. And looking for a binary in this path hurts nothing, not looking for it impact every mac user. Don't be that dick, just look for the binary where it is installed.

@bunsenstraat
Copy link
Contributor

Don't be that dick, just look for the binary where it is installed.

Please remain polite on our repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants