Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Could not resolve dependency: jasmin-core, karma-jasmine-html-reporter

$
0
0

Hey guys,

I have:

Windows 10, 64bit

node -v
v16.4.2

npm -v
7.18.1

ionic -v
6.16.3

ionic start myapp blank --type=angular --capacitor

it throws error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ionic-app-base@0.0.0
npm ERR! Found: jasmine-core@3.7.1
npm ERR! node_modules/jasmine-core
npm ERR! dev jasmine-core@"~3.7.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer jasmine-core@">=3.8" from karma-jasmine-html-reporter@1.7.0
npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR! dev karma-jasmine-html-reporter@"^1.5.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.

I have cleared npm cache, deleted all the nodejs files and folders, reinstalled nodejs but its all same.

After googling, I found that web - unable to resolve dependency tree error for creating new angular project - Stack Overflow

In broken app directory, editing package.json
change this

"karma-jasmine-html-reporter": "^1.5.0",

to:

"karma-jasmine-html-reporter": "~1.5.0",

and after that run npm install fixes error.

It’s quite troublesome to do it manually after every project start.

Does anyone face this problem?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>