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更新为最新版本.这应该可以解决问题.
| 归档时间: |
|
| 查看次数: |
8999 次 |
| 最近记录: |