3 ms·
Put one of the following in your package.json "postinstall" hook: npm link lib link -s lib node_modules/lib Then: require('lib/models/user') No
by eldude 13y ago
Put one of the following in your package.json "postinstall" hook:
npm link lib
link -s lib node_modules/lib
Then:
require('lib/models/user')
No matter where you are.