npm WARN弃用了npmconf@2.1.2:这个软件包已经重新集成到npm中,现在已经过时了npm

Cod*_*Med 21 javascript node.js yeoman

我在CentOS 7服务器上安装node.js,当我尝试安装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
Run Code Online (Sandbox Code Playgroud)

安装的yeoman似乎正常工作.我能做些什么来避免这种警告吗?让它处理不当会有什么影响?

以下是yeoman安装的终端输出的第一部分的其余部分:

[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
Run Code Online (Sandbox Code Playgroud)

小智 14

问题是与"最新稳定"版本的节点捆绑在一起的npm版本没有正确安装我们的一些npm软件包.要解决此问题,请打开命令提示符并运行:

npm -g install npm
Run Code Online (Sandbox Code Playgroud)

将npm更新为最新版本.这应该可以解决问题.

  • 我对node&npm的全新安装有同样的问题.`npm WARN弃用了npmconf@2.1.2:这个软件包已经重新集成到npm中,现在已经过时npm了.在将npm更新到最新版本后也会出现问题.我用Debian登录了Windows 10和虚拟机. (7认同)
  • 在运行之后,我再次收到相同的消息.有人知道一个用作稳定的versin吗? (2认同)