install npm terminal code example Example 1: install latest npm npm install npm@latest -g Example 2: intall npm npm install -g npm