Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js deprecated object-keys

I'm a beginer at node.js, and I'm learning it through a tutorial. I installed node correctly and tested it out with simple console.log calls. The problem is I'm getting an error when trying to run this command:

npm-install node-dev -g

I get an error:

"npm WARN deprecated [email protected]: Please update to the latest object keys"

I'm running node on windows 7 64-bit

Any ideas on what might be wrong?

like image 635
gogo_rulez Avatar asked Dec 23 '14 10:12

gogo_rulez


People also ask

What is deprecated in node JS?

Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node. js process with a non-zero exit code.

How do I check if an object contains a key?

You can use the JavaScript in operator to check if a specified property/key exists in an object. It has a straightforward syntax and returns true if the specified property/key exists in the specified object or its prototype chain. Note: The value before the in keyword should be of type string or symbol .

Does object keys preserve order?

keys() method, which lets you use a for...of loop, but the order of the resulting object keys is not guaranteed. The behavior is the same for Object. values() or Object. entries() — the order of the object properties can vary from insertion order.


1 Answers

The library you install have object-keys library with version 0.2.0 somewhere in dependency tree, and version 0.2.0 is deprecated.

You have nothing to worry about at the moment, especially as you are just starting to work with node.js, it is only deprecated, and library owner will probably update it soon. However you can help him with that by filing a bug report.

like image 152
stroncium Avatar answered Oct 18 '22 11:10

stroncium