Typo in help info for "npm install"

(Ian Rehwinkel) #1

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.

Details

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
linux
npm isn´t all - but it´s still quite cool
(Lars Willighagen) #2

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

(Joe Oli) #3

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
win32

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

(Lars Willighagen) #4

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).

(system) closed #5

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.