The directory used by npm for globally installed npm modules.
Last updated a year ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install global-modules 
SYNC missed versions from official npm registry.

global-modules NPM version NPM monthly downloads NPM total downloads Linux Build Status

The directory used by npm for globally installed npm modules.

Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your :heart: and support.


Install with npm:

$ npm install --save global-modules


const globalModules = require('global-modules');
//=> '/usr/local/lib/node_modules' 

(Note that this path might be different based on platform, user-defined configuration settings, etc)


<summary> Contributing</summary>

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

<summary> Running Tests</summary>

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test
<summary> Building docs</summary>

(This project's is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Related projects

You might also be interested in these projects:


Commits Contributor
20 jonschlinkert
1 Kikobeats


Jon Schlinkert


Copyright © 2018, Jon Schlinkert. Released under the MIT License.

This file was generated by verb-generate-readme, v0.8.0, on December 14, 2018.

Current Tags

  • 2.0.0                                ...           latest (a year ago)

7 Versions

  • 2.0.0                                ...           a year ago
  • 1.0.0                                ...           3 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Today 1,108
This Week 1,108
This Month 1,108
Last Day 6,507
Last Week 129,508
Last Month 499,201
Dependencies (1)
Dev Dependencies (2)
Dependents (322)

Copyright 2014 - 2016 © |