dependabot/npm_and_yarn/main/proc-log-7.0.0
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 1 | --- |
| 2 | title: Downloading and installing packages globally |
| 3 | redirect_from: |
| 4 | - /getting-started/installing-npm-packages-globally |
| 5 | --- |
| 6 | |
| 7 | <Note> |
| 8 | |
| 9 | **Tip:** If you are using npm 5.2 or higher, we recommend using `npx` to run packages globally. |
| 10 | |
| 11 | </Note> |
| 12 | |
| 13 | [Installing][cli-install] a package globally allows you to use the code in the package as a set of tools on your local computer. |
| 14 | |
| 15 | To download and install packages globally, on the command line, run the following command: |
| 16 | |
| 17 | ``` |
| 18 | npm install -g <package_name> |
| 19 | ``` |
| 20 | |
| 21 | If you get an EACCES permissions error, you may need to reinstall npm with a version manager or manually change npm's default directory. For more information, see "[Resolving EACCES permissions errors when installing packages globally][perm-errors]". |
| 22 | |
| 23 | [cli-install]: /cli/install |
| 24 | [perm-errors]: resolving-eacces-permissions-errors-when-installing-packages-globally |