npm WARN弃用了npmconf@2.1.2:这个软件包已经重新集成到npm中,现在已经过时了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

查看:348
本文介绍了npm WARN弃用了npmconf@2.1.2:这个软件包已经重新集成到npm中,现在已经过时了npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CentOS 7服务器上安装node.js,当我尝试安装yeoman时出现以下错误:

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?

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

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


推荐答案

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

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

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

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

这篇关于npm WARN弃用了npmconf@2.1.2:这个软件包已经重新集成到npm中,现在已经过时了npm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆