3 ms·
Setting an environment variable to include a directory in which you have libraries that you need to use across your application is not a workaround. It's using
by heydenberk 13y ago
Setting an environment variable to include a directory in which you have libraries that you need to use across your application is not a workaround. It's using a feature.
- mcgwiz 13y agoSo? Asking earnestly, what exactly is your point? That the title offends you because it uses the phrase "work around"? Adding a relative path to a *PATH variable is clever, elegant, useful, and uncommon. It resolves a problem not directly (by changing how 'require' works internally), but indirectly, aka "working around" it.