node install cmd code example Example 1: install npm globally npm install npm@latest -g Example 2: intall npm npm install -g npm