npm install installs extraneous deps

cli

(Joshua) #1

What I Wanted to Do

Install gulp in an empty directory.

What Happened Instead

It installed, but npm ls failed due to extraneous errors.

Reproduction Steps

  1. mkdir test
  2. cd test
  3. npm i gulp

Details

Versions:

{ npm: '6.1.0',
  ares: '1.14.0',
  cldr: '33.0',
  http_parser: '2.8.0',
  icu: '61.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.29.0',
  node: '10.1.0',
  openssl: '1.1.0h',
  tz: '2018c',
  unicode: '10.0',
  uv: '1.20.2',
  v8: '6.6.346.27-node.6',
  zlib: '1.2.11' }

Note: this only happens without a package.json.
No crash.
This is from https://github.com/npm/npm/issues/20931.


(Kat Marchán) #2

Extraneous means they’re not in your package.json, basically :slight_smile:


(system) #3

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