I am creating a doughnut chart by using chart.js with its react wrapper. It's working fine in the new project, but not able to install it in the main project.
Below is an example of a new project where it's working fine.

And below is the example of the main old project, where I am not able to install it

Error:
The engine “node” is incompatible with this module
Node version is the same, you can check in both images.
From the log, I can see that this is an issue with the version of the node you are currently having. See this line in your log
The engine "node" is incompatible with the module. Expected version ">=10". Got "8.10.0"
To solve this, you could try this
1. Install nvm
2. Download another version of node ">=10"
3. Switch to that the latest version
4. And try installing the module again
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