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-cli-path-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

Installation

Use npm.

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

Usage

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

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

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

Related project

License

Copyright (c) 2016 Shinnosuke Watanabe

Licensed under the MIT License.

Metadata

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