npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Typo in help info for "npm install"

What I Wanted to Do

I wanted to install an npm package.

What Happened Instead

I noticed that the alisases in the command help were printed as following: i, isntall, add.

Reproduction Steps

Type npm i --help into terminal.


It’s not really a bug, just a minor spelling mistake.

Platform Info

$ npm --versions
  npm: '6.4.1',
  ares: '1.14.0',
  cldr: '32.0.1',
  http_parser: '2.7.1',
  icu: '60.2',
  modules: '57',
  nghttp2: '1.30.0',
  node: '8.10.0',
  openssl: '1.1.0g',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.18.0',
  v8: '6.2.414.50',
  zlib: '1.2.11'
$ node -p process.platform

I can’t check right now, but that could just be an intentional alias to catch typos.

I came here to report the same issue. spelling of install is wrong in aliases. it should be install, instead it is isntall.

OMG. It actually works if you type “npm isntall react”. how ridiculous is this.

npm --versions 6.3.0 node -p process.platform

I am actually running Win 10 64 bit edition. (Microsoft Windows [Version 10.0.17134.471]
Not sure why it would report win32 ?!

It’s both install and isntall, so that if you mistype it still works. There are a number of other, similar typo catchers in place. Also, win32 is the platform identifier for all Windows platforms in Node.js (docs).