When using Jam with NPM v3, node_modules are stored at the top level, not recursively.
e.g.
NPM v2
.
└─┬ node_modules
└─┬ jam
└─┬ node_modules
└── requirejs
NPM v3
.
└─┬ node_modules
├── jam
└── requirejs
As such, fs.readFile('../node_modules/require/require.js', cb) should be replaced with the require syntax: require('require/require.js'), which requires the correct node module from wherever they are stored.
When using Jam with NPM v3, node_modules are stored at the top level, not recursively.
e.g.
NPM v2
NPM v3
As such,
fs.readFile('../node_modules/require/require.js', cb)
should be replaced with therequire
syntax:require('require/require.js')
, which requires the correct node module from wherever they are stored.