index.js 423 B

123456789101112131415161718
  1. /*!
  2. * global-modules <https://github.com/jonschlinkert/global-modules>
  3. *
  4. * Copyright (c) 2015 Jon Schlinkert.
  5. * Licensed under the MIT license.
  6. */
  7. 'use strict';
  8. var path = require('path');
  9. var prefix = require('global-prefix');
  10. var isWindows = require('is-windows');
  11. if (isWindows()) {
  12. module.exports = path.resolve(prefix, 'node_modules');
  13. } else {
  14. module.exports = path.resolve(prefix, 'lib/node_modules');
  15. }