What do you mean, they're not requireable?
[zlatko@zlatko-mint /tmp]$ node -e "require('express')"
module.js:338
throw err;
^
Error: Cannot find module 'express'
[...cut...]
[zlatko@zlatko-mint /tmp]$ npm i -G express
\
[...cut...]
[zlatko@zlatko-mint /tmp]$ node -e "require('express')"
[zlatko@zlatko-mint /tmp]$
For the OP, it's possible to do it manually, ie: `
require('/home/zlatko/.nvm/versions/node/v4.0.0/lib/node_modules/gulp');` but it's not very scalable.
The problem is - when I bump my node version to, say, 4.0.1, I'd have to fix the path. Also, if it were you, you would not have a `/home/zlatko` part, but possibly /usr/lib/node_modules or similar.
I don't know if there's a node config option for something like that though, probably there isn't.
Zlatko