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?
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.
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 .
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With