Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The engine “node” is incompatible with this module when installing React-chartjs-2 Chart.js,

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.

enter image description here

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

enter image description here

Error:

The engine “node” is incompatible with this module

Node version is the same, you can check in both images.

like image 754
Supriya Kumari Avatar asked Apr 11 '26 03:04

Supriya Kumari


1 Answers

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

like image 156
Sulaiman Abiodun Avatar answered Apr 12 '26 16:04

Sulaiman Abiodun