question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

📝 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:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
louislamcommented, Apr 6, 2022

Fixed in 1.13.2, thanks for the report.

1reaction
usuallcommented, Apr 6, 2022

I was occured same problem. C:\virtualbox\uptime-kuma>node -v v16.14.2

Read more comments on GitHub >

github_iconTop 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&#38;#039;t resolve &#38;#039;react-chartjs-2&#38
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found