npm Community Forum (Archive)

The npm community forum has been discontinued.

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

npm not recognizing global package

  1. npm install eslint -g -e


+ eslint@5.12.1

added 116 packages from 70 contributors in 7.987s
  1. npm install babel-eslint -g -e


+ babel-eslint@10.0.1

added 32 packages from 48 contributors in 1.5s

BUT is generating a warn! Insn’t recognizing the peerDependencies.

npm WARN babel-eslint@10.0.1 requires a peer of eslint@>= 4.12.1 but none is installed. You must install peer dependencies yourself.

  1. npm list -g --depth=0


├── babel-eslint@10.0.1

├── eslint@5.12.1

└── npm@6.7.0