我在 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/