我正在 CentOS 7 服务器上安装 node.js,当我尝试安装 yeoman 时收到以下错误:
npm WARN deprecated [email protected] /cdn-cgi/l/email-protection: 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 [email protected] /cdn-cgi/l/email-protection: 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
> [email protected] /cdn-cgi/l/email-protection 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 更新到最新版本。这应该可以解决问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)