javascript - npm WARN 已弃用 npmconf@2.1.2 : this package has been reintegrated into npm and is now out of date with respect to npm

标签 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

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

最佳答案

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

npm -g install npm

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

关于javascript - npm WARN 已弃用 npmconf@2.1.2 : this package has been reintegrated into npm and is now out of date with respect to npm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35418759/

相关文章:

Javascript 如果有类,警报 "yes",否则警报 "no"

node.js - 尽管更改了文件 Bson,但 npm install 出错

node.js - 如何从 Node 模块导出 Typescript 接口(interface)?

node.js - 如何使用 cmd 更新 Node.js?

node.js - 无法从 angular.js 向express.js 发送 POST

intellij-idea - 使用 Intellij 中的 Yeoman(想法 12)

node.js - 无法让 Yeoman 正常工作

javascript - 使用 ".delay"启用链接方法

javascript - 如何在 list.js 分页中使用 "next"和 "previous"按钮而不是数字?

javascript - jQuery AddClass 方法不起作用