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

Does not install or run on fresh clone #65

Open
CastleArg opened this issue Nov 2, 2022 · 0 comments
Open

Does not install or run on fresh clone #65

CastleArg opened this issue Nov 2, 2022 · 0 comments

Comments

@CastleArg
Copy link

TO Repro:
git clone
npm i

Results:

  • old lockfile upgrade occurs
  • will not run due to source map error
  • subsequent npm i fails on peer dependency errors.

Error: Cannot find module './lib/source-map-generator'
Require stack:

  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/source-map/source-map.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/utils/template.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/utils/index.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/experimental/jobs/create-job-handler.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/experimental/jobs/index.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/experimental.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/index.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/utilities/config.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/lib/init.js
  • /Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/@angular/cli/bin/ng
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/Users/coolusername/dev/tutorial/angular/PSAngularUnitTestingCourse/node_modules/source-map/source-map.js:6:30)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {

npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/jasmine-core
npm ERR! dev jasmine-core@"~3.6.0" from the root project
npm ERR! jasmine-core@"^3.6.0" from [email protected]
npm ERR! node_modules/karma-jasmine
npm ERR! dev karma-jasmine@"~4.0.0" from the root project
npm ERR! peer karma-jasmine@">=1.1" from [email protected]
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! Could not resolve dependency:
npm ERR! peer jasmine-core@">=3.7.1" from [email protected]
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: [email protected]
npm ERR! node_modules/jasmine-core
npm ERR! peer jasmine-core@">=3.7.1" from [email protected]
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.

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

No branches or pull requests

1 participant