npm WARN deprecated [email protected]: Use uuid module instead

kit62 picture kit62 · Apr 11, 2017 · Viewed 19.6k times · Source

When i try:
$ npm install -g cordova@latest
always get
npm WARN deprecated [email protected]: Use uuid module instead

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

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

After:
$npm list -g node-uuid /usr/local/lib
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

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

Answer

Varun Taliyan picture Varun Taliyan · May 24, 2017

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