Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current master branch dependencies won't install #1768

Closed
ZaLiTHkA opened this issue Aug 30, 2022 · 5 comments
Closed

Current master branch dependencies won't install #1768

ZaLiTHkA opened this issue Aug 30, 2022 · 5 comments
Labels

Comments

@ZaLiTHkA
Copy link

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Trying to install NPM packages with the current master branch fails with the following output:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: karma-jasmine-html-reporter@1.7.0
npm ERR! Found: jasmine-core@3.6.0
npm ERR! node_modules/jasmine-core
npm ERR!   dev jasmine-core@"~3.6.0" 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! Conflicting peer dependency: jasmine-core@4.3.0
npm ERR! node_modules/jasmine-core
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.
npm ERR!
npm ERR! See C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\cache\_logs\2022-08-30T07_13_20_668Z-debug-0.log

for reference:

Expected behavior:
Considering the master branch is normally considered "stable", I would expect all packages to install..

Steps to reproduce:

  • clone repo
  • open terminal
  • run npm i

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

NOTE: I've never seen warnings like this from ionic info, but I've also never worked with Capacitor before. is this simply because packages are not installed...?

[WARN] Error loading @ionic/angular package.json: Error: Cannot find module '@ionic/angular/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic
[WARN] Error loading @ionic/angular-toolkit package.json: Error: Cannot find module '@ionic/angular-toolkit/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic
[WARN] Error loading @angular/cli package.json: Error: Cannot find module '@angular/cli/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic
[WARN] Error loading @angular-devkit/build-angular package.json: Error: Cannot find module
       '@angular-devkit/build-angular/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic
[WARN] Error loading @angular-devkit/schematics package.json: Error: Cannot find module
       '@angular-devkit/schematics/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic
[WARN] Error loading @capacitor/core package.json: Error: Cannot find module '@capacitor/core/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic
[WARN] Error loading @capacitor/android package.json: Error: Cannot find module '@capacitor/android/package'

       Require stack:
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\project\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\lib\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\index.js
       - C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli\bin\ionic

Ionic:

   Ionic CLI                     : 6.20.1 (C:\Users\agreeff.NORTECHZA\scoop\persist\nodejs-lts\bin\node_modules\@ionic\cli)
   Ionic Framework               : not installed
   @angular-devkit/build-angular : not installed
   @angular-devkit/schematics    : not installed
   @angular/cli                  : not installed
   @ionic/angular-toolkit        : not installed

Capacitor:

   Capacitor CLI      : not installed
   @capacitor/android : not installed
   @capacitor/core    : not installed
   @capacitor/ios     : not installed

Utility:

   cordova-res : 0.15.4
   native-run  : 1.6.0

System:

   NodeJS : v16.17.0 (C:\Users\agreeff.NORTECHZA\scoop\apps\nodejs-lts\current\node.exe)
   npm    : 8.15.0
   OS     : Windows 10
@ionitron-bot ionitron-bot bot added the triage label Aug 30, 2022
@kennetherland
Copy link

Is someone going to look at this? It's interrupting my business.

@kennetherland
Copy link

The following did the trick:
npm install jasmine-core

@userTTG
Copy link

userTTG commented Jan 11, 2023

The following did the trick: npm install jasmine-core

It's not working.

@eboxberger
Copy link

eboxberger commented Jan 11, 2023

This should help:

  • Delete package-lock.json
  • Modify package.json. Set the version of jasmine-core to "^3.6.0"
  • Install packages with npm install

@ionitron-bot
Copy link

ionitron-bot bot commented Mar 11, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the Ionic Conference App, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants