mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Set the NODE_PATH variable when activating node
When installing packages with npm using the global switch `-g` the package ends up in the proper directory (i.e. .nvm/$VERSION/lib/node_modules), however node is unable to require it since it somehow isn't searching on it's prefix. This patch fixes this behavior by manually adding the `node_modules` dir to the `NODE_PATH` variable.
This commit is contained in:
parent
ec2327fddd
commit
68f57ac455
Loading…
Reference in New Issue
Block a user