chartjs dependency issue during installation
See original GitHub issue⚠️ Please verify that this bug has NOT been raised before.
- I checked and didn’t find similar issue
🛡️ Security Policy
- I agree to have read this project Security Policy
📝 Describe your problem
I am trying to install uptime-kuma through nodejs manually. When I run npm run setup I keep getting this:
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: chartjs-adapter-dayjs@1.0.0
npm ERR! Found: chart.js@3.6.2
npm ERR! node_modules/chart.js
npm ERR! chart.js@"~3.6.2" from the root project
npm ERR! peer chart.js@"=> ^3.1.0" from vue-chart-3@3.0.9
npm ERR! node_modules/vue-chart-3
npm ERR! vue-chart-3@"3.0.9" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer chart.js@">= 2.8.0 < 3" from chartjs-adapter-dayjs@1.0.0
npm ERR! node_modules/chartjs-adapter-dayjs
npm ERR! chartjs-adapter-dayjs@"~1.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: chart.js@2.9.4
npm ERR! node_modules/chart.js
npm ERR! peer chart.js@">= 2.8.0 < 3" from chartjs-adapter-dayjs@1.0.0
npm ERR! node_modules/chartjs-adapter-dayjs
npm ERR! chartjs-adapter-dayjs@"~1.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-04-06T10_41_05_774Z-debug-0.log
npm install is throwing the same
https://www.npmjs.com/package/chartjs-adapter-dayjs -> There isn’t much information there
🐻 Uptime-Kuma Version
1.13.1
💻 Operating System and Arch
Debian 11
🌐 Browser
None
🐋 Docker Version
No response
🟩 NodeJS Version
16.14.2
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Installation - Chart.js
If you download or clone the repository, you must build Chart.js to generate the dist files. Chart.js no longer comes with prebuilt release ......
Read more >Chart.js not installing with NPM - Stack Overflow
it seems you have to stop ng serve and then try npm install chart.js --save because I tried the same and it is...
Read more >Getting Started - vue-chartjs
The most common problem is that you mount your chart component directly and pass in data from an asynchronous API call. The problem...
Read more >Error Can&#039;t resolve &#039;react-chartjs-2&
And as I said - you have to install dependencies with the --legacy-peer-deps flag (if you are using npm). Common npm install one...
Read more >ng2-charts - npm
You will also need to install and include Chart.js library in your application (it is a peer dependency of this library, more info...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Fixed in 1.13.2, thanks for the report.
I was occured same problem. C:\virtualbox\uptime-kuma>node -v v16.14.2