npm WARN不推荐使用node-uuid@1.4.8:改用uuid模块 [英] npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

查看:1045
本文介绍了npm WARN不推荐使用node-uuid@1.4.8:改用uuid模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试时:
$ npm install -g cordova @ latest
总是得到
npm WARN不推荐使用node-uuid@1.4.8:改用uuid模块

When i try:
$ npm install -g cordova@latest
always get
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

mac Os Sierra 10.12
npm v.4.4.4
节点v.6.10.2

mac Os Sierra 10.12
npm v. 4.4.4
node v. 6.10.2

在安装cordova之前:
$ npm list -g节点-uuid
/usr/local/lib
....(空)

Before install of cordova:
$npm list -g node-uuid
/usr/local/lib
....(empty)

之后:
$ npm list -g节点-uuid /usr/local/lib
.... cordova@6.5.0
........ cordova-lib@6.5.0
............ npm@2.15.12
....... request@2.74.0
.................... node-uuid@1.4.7
............ request@2.47.0
................ node-uuid@1.4.8

After:
$npm list -g node-uuid /usr/local/lib
....cordova@6.5.0
........cordova-lib@6.5.0
............npm@2.15.12
................request@2.74.0
....................node-uuid@1.4.7
............request@2.47.0
................node-uuid@1.4.8

我尝试遵循所有建议并安装/卸载一百次.
这是npm还是cordova问题?

I tried follow every suggestion and install/uninstall a hundred times.
It's a npm or cordova problem?

推荐答案

此警告表示不赞成使用旧的node-uuid模块,并且不会继续维护该模块.该模块仍在NPM中发布,以实现向后兼容(不推荐使用). 我们可以使用以下命令显式安装uuid模块:

This warning means that old node-uuid module is deprecated and won't be maintained moving forward. The module is still published in NPM for backward compatibility (with the deprecation notice). We can explicitly install uuid module using below commands:

npm uninstall --save node-uuid
npm install --save uuid

这篇关于npm WARN不推荐使用node-uuid@1.4.8:改用uuid模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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