Dependency conflicts when running npm install

when I run npm install I get:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @forge/ui-jira@10.0.2
npm ERR! Found: @forge/ui@1.9.1
npm ERR! node_modules/@forge/ui
npm ERR!   @forge/ui@"^1.9.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @forge/ui@"1.8.1" from @forge/ui-jira@10.0.2
npm ERR! node_modules/@forge/ui-jira
npm ERR!   @forge/ui-jira@"^10.0.2" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @forge/ui@1.8.1
npm ERR! node_modules/@forge/ui
npm ERR!   peer @forge/ui@"1.8.1" from @forge/ui-jira@10.0.2
npm ERR!   node_modules/@forge/ui-jira
npm ERR!     @forge/ui-jira@"^10.0.2" 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.

forge version: 6.15.0
node version: v18.14.2
npm version: 9.5.0

I tried updating forge/ui and forge sdk but that didnt solve the issue.
What can I do?
Thanks in advance!

Although I don’t recall the details, I recently encountered something similar. I had success doing npm uninstall on the forge packages, and then installing again.

1 Like

thanks, that helped!