Same title.
I don't want install every time with any project.
Just install once.
Thanks in advance.
Edit: I know install global but how to require it is my question.
Check Addenda: Package Manager Tips
Define NODE_PATH
with path local modules, example:
/usr/lib/node_modules
C:\Users\<Username>\AppData\Local\Yarn\Data\global\node_modules
And now you can call it.
Since the module lookups using node_modules
folders are all relative, and based on the real path of the files making the calls to require()
, the packages themselves can be anywhere.
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