Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including npm-cli-path-cli with all npm packages installed. Try it out:

var npmCliPathCli = require("npm-cli-path-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

npm-cli-path-cli v1.0.1

Get the path of `npm-cli.js` included in the globally installed npm CLI


NPM version Build Status Coverage Status Dependency Status devDependency Status

Resolve the path of npm-cli.js included in the globally installed npm CLI


Use npm.

npm install --global npm-cli-path-cli


npm-cli-path [(--help|-h|--version|-v)]

--help,    -h: Print usage information
--version, -v: Print version

$ npm-cli-path
> /usr/local/lib/node_modules/npm/bin/npm-cli.js

Related project


Copyright (c) 2016 Shinnosuke Watanabe

Licensed under the MIT License.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free