19

I am installing node.js on a CentOS 7 server, and am getting the following error when I try to install yeoman:

npm WARN deprecated npmconf@2.1.2: this package has been  
reintegrated into npm and is now out of date with respect to npm

The install of yeoman seems to otherwise work correctly. Is there something that I can do to avoid this warning? What are the implications of leaving it unhandled?

Here is the rest of the first part of the terminal output from the yeoman install:

[root@localhost ~]# npm install -g yo
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/usr/bin/yo -> /usr/lib/node_modules/yo/lib/cli.js

> yo@1.6.0 postinstall /usr/lib/node_modules/yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
Everything looks all right!
/usr/lib
.... many lines of directory structure follow
CodeMed
  • 9,527
  • 70
  • 212
  • 364

1 Answers1

14

The problem is that the version of npm that is bundled with the "latest stable" version of node does not properly install some of our npm packages. To fix this, open a command prompt and run:

npm -g install npm

To update npm to the latest version. This should fix the problem.

Pierre Trollé
  • 426
  • 3
  • 10
  • 7
    I have the same problem on fresh installation of node & npm. `npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm` The problem occurs also after updating npm to latest version. I checked in on Windows 10 and virtual machine with Debian. – rflw May 09 '16 at 08:51
  • Even I am facing a similar issue and it does not solve even after updating the npm. I am running it on Windows 10 – EagleEye May 11 '16 at 17:16
  • I still get this same warning after installing npm@latest. – Andrew Magill Jun 21 '16 at 20:37
  • same here. node v4.4.7, npm 2.15.8, same warning when trying to install yo – Stephan Richter Jul 12 '16 at 15:30
  • Same here, after installing last version (7.2.0 x64) in W10 – GWorking Nov 25 '16 at 06:00
  • 2
    after running this I'm getting the same message again. Does anybody knows a versin that be used as stable? – Vladyn Dec 19 '16 at 10:01