Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Unable to install dependencies #355

Closed
briantopping opened this issue Jul 12, 2021 · 4 comments
Closed

Unable to install dependencies #355

briantopping opened this issue Jul 12, 2021 · 4 comments

Comments

@briantopping
Copy link

I'm unable to get a start on the build. Seems like dependencies might be out of date. plugin-typescript hasn't been updated in years and there's a conflict with the typescript version it provides and the version in package.json. Remove the plugin and there's a problem with the dependency closure on slate, which is required by upstream Grafana libraries. Updating to 8.0.5 doesn't seem to help:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: slate@0.47.8
npm ERR! node_modules/slate
npm ERR!   slate@"0.47.8" from @grafana/ui@8.0.5
npm ERR!   node_modules/@grafana/ui
npm ERR!     @grafana/ui@"8.0.5" from @grafana/toolkit@8.0.5
npm ERR!     node_modules/@grafana/toolkit
npm ERR!       @grafana/toolkit@"^8.0.0" from the root project
npm ERR!   peer slate@">=0.47.0" from @grafana/slate-react@0.22.10-grafana
npm ERR!   node_modules/@grafana/slate-react
npm ERR!     @grafana/slate-react@"0.22.10-grafana" from @grafana/ui@8.0.5
npm ERR!     node_modules/@grafana/ui
npm ERR!       @grafana/ui@"8.0.5" from @grafana/toolkit@8.0.5
npm ERR!       node_modules/@grafana/toolkit
npm ERR!         @grafana/toolkit@"^8.0.0" from the root project
npm ERR!   3 more (slate-base64-serializer, slate-plain-serializer, slate-prop-types)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer slate@">=0.55.0" from slate-react@0.65.2
npm ERR! node_modules/@grafana/slate-react/node_modules/slate-react
npm ERR!   peer slate-react@">=0.22.0" from slate-react-placeholder@0.2.9
npm ERR!   node_modules/@grafana/slate-react/node_modules/slate-react-placeholder
npm ERR!     slate-react-placeholder@"^0.2.8" from @grafana/slate-react@0.22.10-grafana
npm ERR!     node_modules/@grafana/slate-react
npm ERR!       @grafana/slate-react@"0.22.10-grafana" from @grafana/ui@8.0.5
npm ERR!       node_modules/@grafana/ui
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 /home/topping/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/topping/.npm/_logs/2021-07-12T18_32_12_310Z-debug.log

Apologies if I am doing it wrong, I haven't built JS software in a while. Thanks!

@ofir5300
Copy link
Collaborator

Hi @briantopping
Have you tried yarn install or npm install before using other scripts?

@ofir5300
Copy link
Collaborator

If it is not solved, please open a new issue

@briantopping
Copy link
Author

Did anyone try clearing their cache and loading dependencies?

@ofir5300
Copy link
Collaborator

@briantopping Also please make sure you are using an updated node version (14 or higher preferred)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants