Skip to content
This repository was archived by the owner on Aug 7, 2019. It is now read-only.

Conversation

@jpstevens
Copy link

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 jpstevens changed the title Fix bug where node_modules are loaded using fs rather than require Fix bug when installing jam using NPM v3 Nov 21, 2015
@jpstevens
Copy link
Author

bump

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant