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