jam icon indicating copy to clipboard operation
jam copied to clipboard

Fix bug when installing jam using NPM v3

Open jpstevens opened this issue 9 years ago • 1 comments

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.

jpstevens avatar Nov 21 '15 14:11 jpstevens

bump

jpstevens avatar Jan 27 '16 14:01 jpstevens