前提・実現したいこと
開発環境を整える段階で躓いています。
Angularプロジェクト作成したいです。
発生している問題・エラーメッセージ
terminal
1$ npx ng new test
error
1? Do you want to enforce stricter type checking and stricter bundle budgets in the worksp 2ace? 3 This setting helps improve maintainability and catch bugs ahead of time. 4 For more information, see https://angular.io/strict Yes 5? Would you like to add Angular routing? Yes 6? Which stylesheet format would you like to use? CSS 7CREATE test/README.md (1014 bytes) 8CREATE test/.editorconfig (274 bytes) 9CREATE test/.gitignore (631 bytes) 10CREATE test/angular.json (3607 bytes) 11CREATE test/package.json (1205 bytes) 12CREATE test/tsconfig.json (783 bytes) 13CREATE test/tslint.json (3185 bytes) 14CREATE test/.browserslistrc (703 bytes) 15CREATE test/karma.conf.js (1421 bytes) 16CREATE test/tsconfig.app.json (287 bytes) 17CREATE test/tsconfig.spec.json (333 bytes) 18CREATE test/src/favicon.ico (948 bytes) 19CREATE test/src/index.html (290 bytes) 20CREATE test/src/main.ts (372 bytes) 21CREATE test/src/polyfills.ts (2830 bytes) 22CREATE test/src/styles.css (80 bytes) 23CREATE test/src/test.ts (753 bytes) 24CREATE test/src/assets/.gitkeep (0 bytes) 25CREATE test/src/environments/environment.prod.ts (51 bytes) 26CREATE test/src/environments/environment.ts (662 bytes) 27CREATE test/src/app/app-routing.module.ts (245 bytes) 28CREATE test/src/app/app.module.ts (393 bytes) 29CREATE test/src/app/app.component.css (0 bytes) 30CREATE test/src/app/app.component.html (24955 bytes) 31CREATE test/src/app/app.component.spec.ts (1051 bytes) 32CREATE test/src/app/app.component.ts (208 bytes) 33CREATE test/e2e/protractor.conf.js (904 bytes) 34CREATE test/e2e/tsconfig.json (274 bytes) 35CREATE test/e2e/src/app.e2e-spec.ts (655 bytes) 36CREATE test/e2e/src/app.po.ts (274 bytes) 37⠹ Installing packages (npm)...npm ERR! code ERESOLVE 38npm ERR! ERESOLVE unable to resolve dependency tree 39npm ERR! 40npm ERR! While resolving: test@0.0.0 41npm ERR! Found: jasmine-core@3.6.0 42npm ERR! node_modules/jasmine-core 43npm ERR! dev jasmine-core@"~3.6.0" from the root project 44npm ERR! 45npm ERR! Could not resolve dependency: 46npm ERR! peer jasmine-core@">=3.7.1" from karma-jasmine-html-reporter@1.6.0 47npm ERR! node_modules/karma-jasmine-html-reporter 48npm ERR! dev karma-jasmine-html-reporter@"^1.5.0" from the root project 49npm ERR! 50npm ERR! Fix the upstream dependency conflict, or retry 51npm ERR! this command with --force, or --legacy-peer-deps 52npm ERR! to accept an incorrect (and potentially broken) dependency resolution. 53npm ERR! 54npm ERR! See /Users/[username]/.npm/eresolve-report.txt for a full report. 55 56npm ERR! A complete log of this run can be found in: 57npm ERR! /Users/[username]/.npm/_logs/2021-05-10T08_08_02_009Z-debug.log 58✖ Package install failed, see above. 59The Schematic workflow failed. See above.
環境
macOS Big Sur 11.2.2
node -v v16.1.0
npm -v 7.11.2
Angular CLI: 11.2.12
他に解決に必要な情報があればお願いします。
よろしくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。