Get the npm global path prefix.
Install with npm:
$ npm install global-prefix --save
This is the code used by npm internally to resolve the global prefix.
var prefix = require('global-prefix');
//=> '/usr/local'
- global-modules: The directory used by npm for globally installed npm modules. | homepage
- global-paths: Returns an array of unique "global" directories based on the user's platform and environment. The… more | homepage
Install dev dependencies:
$ npm install -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2016 Jon Schlinkert Copyright (c) npm, Inc. and Contributors Released under the MIT license.
This file was generated by verb, v0.9.0, on March 13, 2016.