1 ---
2 title: install
3 section: 5
4 description: Download and install node and npm
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/configuring-npm/install.md
8 redirect_from:
9 - /cli-documentation/configuring-npm/install
10 - /cli-documentation/files/install
11 - /cli-documentation/v10/configuring-npm/install
12 - /cli-documentation/v10/files/install
13 - /cli/configuring-npm/install
14 - /cli/files/install
15 - /cli/v10/files/install
16 - /configuring-npm/install
17 - /files/install
18 ---
19
20 ### Description
21
22 To publish and install packages to and from the public npm registry, you must install Node.js and the npm command line interface using either a Node version manager or a Node installer. **We strongly recommend using a Node version manager to install Node.js and npm.** We do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.
23
24 ### Overview
25
26 - [Checking your version of npm and Node.js](#checking-your-version-of-npm-and-nodejs)
27 - [Using a Node version manager to install Node.js and npm](#using-a-node-version-manager-to-install-nodejs-and-npm)
28 - [Using a Node installer to install Node.js and npm](#using-a-node-installer-to-install-nodejs-and-npm)
29
30 ### Checking your version of npm and Node.js
31
32 To see if you already have Node.js and npm installed and check the installed version, run the following commands:
33
34 ```
35 node -v
36 npm -v
37 ```
38
39 ### Using a Node version manager to install Node.js and npm
40
41 Node version managers allow you to install and switch between multiple versions of Node.js and npm on your system so you can test your applications on multiple versions of npm to ensure they work for users on different versions. You can [search for them on GitHub](https://github.com/search?q=node+version+manager+archived%3Afalse&type=repositories&ref=advsearch).
42
43 ### Using a Node installer to install Node.js and npm
44
45 If you are unable to use a Node version manager, you can use a Node installer to install both Node.js and npm on your system.
46
47 - [Node.js installer](https://nodejs.org/en/download/)
48 - [NodeSource installer](https://github.com/nodesource/distributions). If you use Linux, we recommend that you use a NodeSource installer.
49
50 #### OS X or Windows Node installers
51
52 If you're using OS X or Windows, use one of the installers from the [Node.js download page](https://nodejs.org/en/download/). Be sure to install the version labeled **LTS**. Other versions have not yet been tested with npm.
53
54 #### Linux or other operating systems Node installers
55
56 If you're using Linux or another operating system, use one of the following installers:
57
58 - [NodeSource installer](https://github.com/nodesource/distributions) (recommended)
59 - One of the installers on the [Node.js download page](https://nodejs.org/en/download/)
60
61 Or see [this page](https://nodejs.org/en/download/package-manager/) to install npm for Linux in the way many Linux developers prefer.
62
63 #### Less-common operating systems
64
65 For more information on installing Node.js on a variety of operating systems, see [this page][pkg-mgr].
66
67 [pkg-mgr]: https://nodejs.org/en/download/package-manager/