Olá,
Eu instalei o Angular CLI conforme abaixo:
C:\Users\laram>ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 10.1.6
Node: 16.13.0
OS: win32 x64
Angular:
...
Ivy Workspace:
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1001.6 (cli-only)
@angular-devkit/core 10.1.6 (cli-only)
@angular-devkit/schematics 10.1.6 (cli-only)
@schematics/angular 10.1.6 (cli-only)
@schematics/update 0.1001.6 (cli-only)
Eu tentei desinstalar o Node e o Angular também e reinstalá-los, mas estou tendo o seguinte erro ainda:
C:\Users\laram>ng new ByteBank
? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? SCSS [ https://sass-lang.com/documentation/syntax#scss
]
CREATE ByteBank/angular.json (3670 bytes)
CREATE ByteBank/package.json (1252 bytes)
CREATE ByteBank/README.md (1026 bytes)
CREATE ByteBank/tsconfig.json (458 bytes)
CREATE ByteBank/tslint.json (3185 bytes)
CREATE ByteBank/.editorconfig (274 bytes)
CREATE ByteBank/.gitignore (631 bytes)
CREATE ByteBank/.browserslistrc (853 bytes)
CREATE ByteBank/karma.conf.js (1020 bytes)
CREATE ByteBank/tsconfig.app.json (287 bytes)
CREATE ByteBank/tsconfig.spec.json (333 bytes)
CREATE ByteBank/src/favicon.ico (948 bytes)
CREATE ByteBank/src/index.html (294 bytes)
CREATE ByteBank/src/main.ts (372 bytes)
CREATE ByteBank/src/polyfills.ts (2835 bytes)
CREATE ByteBank/src/styles.scss (80 bytes)
CREATE ByteBank/src/test.ts (753 bytes)
CREATE ByteBank/src/assets/.gitkeep (0 bytes)
CREATE ByteBank/src/environments/environment.prod.ts (51 bytes)
CREATE ByteBank/src/environments/environment.ts (662 bytes)
CREATE ByteBank/src/app/app.module.ts (314 bytes)
CREATE ByteBank/src/app/app.component.html (25725 bytes)
CREATE ByteBank/src/app/app.component.spec.ts (946 bytes)
CREATE ByteBank/src/app/app.component.ts (213 bytes)
CREATE ByteBank/src/app/app.component.scss (0 bytes)
CREATE ByteBank/e2e/protractor.conf.js (869 bytes)
CREATE ByteBank/e2e/tsconfig.json (294 bytes)
CREATE ByteBank/e2e/src/app.e2e-spec.ts (641 bytes)
CREATE ByteBank/e2e/src/app.po.ts (301 bytes)
| Installing packages...npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: byte-bank@0.0.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! 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\laram\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\laram\AppData\Local\npm-cache\_logs\2021-11-29T18_29_45_098Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.
Poderiam me ajudar?