LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-prefix

prints the local or global prefix path

TLDR

Show local prefix
$ npm prefix
copy
Show global prefix
$ npm prefix -g
copy

SYNOPSIS

npm prefix [options]

DESCRIPTION

npm prefix prints the local or global prefix path. Shows where packages are installed.The command displays installation directory. Useful for scripting.

PARAMETERS

-g

Global prefix.
--help
Display help information.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Local shows closest package.json dir. Global shows npm global path.

HISTORY

npm prefix helps locate package installation directories for scripts and debugging.

SEE ALSO

npm(1), npm-root(1), npm-bin(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid