Javascript Package - Global Package (Cli)


There are two type of packages.

This article goes over the global package (for the whole OS).

They are managed with the npm cli.



  • Yarn (in Windows home\AppData\Local\Yarn\bin\) from the registry
yar global install package
  • Yarn from a local package
yarn global add file:%cd%\packages\mypackage
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
      - mypackage
Done in 27.00s.
  • Npm (windows: home\AppData\Roaming\npm)
npm install -g <package>


yarn global add <package>@version
# or npm
npm update -g <package>@version

To find out which packages need to be updated, you can use

npm outdated -g --depth=0.


yarn global remove now
# or 
npm uninstall -g <package>


# List all
yarn global list
npm list -g
# List one
npm list -g <package>
# Example
npm list -g create-react-app

Documentation / Reference

Powered by ComboStrap