我一直在尝试将Angular 8更新为9,除非我一直遇到无法解决依赖关系的错误。 我首先尝试更新本地CLI,但出现了相同的错误。我的全局CLI也会更新。运行ng update @angular/cli@9时会出现以下错误: Found: @angular-devkit/build-angular@0.803.29
node_modules/@angular-devkit/build-angular
dev @angular-devkit/build-angular@"^0.901.13" from the root project
Could not resol
我想使用角度CLI生成一个新的组件。
但是,当我从我的应用程序根目录运行ng g component my-new-component时,我会得到以下错误:
feilan@feilan-kubuntu:/media/feilan/Data/devprojects/web/udemy-angular4/components101$ ng g c moduleName --module='app.module.shared.ts'
The command "generate" has an option without the required type and n
我的angular项目运行良好,但当我将Angular更新到版本9时,它开始给我这个错误:
This version of CLI is only compatible with Angular versions 0.0.0 || ^10.0.0-beta || >=10.0.0 <11.0.0,
but Angular version 9.1.1 was found instead.
我更新了CLI,但它仍然显示相同的错误。
我的CLI版本是:
Angular CLI: 10.0.0-next.0
Node: 12.13.0
OS: win32 x64
Angular: 9.1
我更新了我的角度,我得到了以下错误:
The serve command requires to be run in an Angular project, but a project definition could not be found.
我已经做到了以下几点:
D:\IntelliJProjects\springboottests\src\main\frontend2>ng update @angular/cli --migrate-only
Package not installed: "@angular/cli". Skipping.
We
我刚刚安装了Angular 8。当我尝试使用"ng serve --open“运行一个项目时,它给出了以下错误:
Could not find the implementation for builder @angular-devkit/build-angular:dev-server
Error: Could not find the implementation for builder @angular-devkit/build-angular:dev-server
at WorkspaceNodeModulesArchitectHost.resolveBuilder (
我得到了下面的错误: android.graphics.drawable.AdaptiveIconDrawable cannot be cast to
android.graphics.drawable.BitmapDrawable 我的代码: platform.ready().then(
function () {
if (platform.is('android') && !platform.is('mobileweb')) {
var success = function(app_list) { alert(JSON.stri
ng update @angular/cli @angular/core。-按照https://update.angular.io/#7.0:8.0的指导,从7升级到8时出现以下错误 > "@angular/core" (requires "^6.0.0" (extended), would install "8.0.0").```
Incompatible peer dependencies found. See above.
package.json has the below versions
"dependenci
我尝试使用angular cli创建一个新的angular应用程序,但它一直抛出相同的错误,并且不让我创建应用程序。
我已经尝试过npm uninstall -g @angular/cli,并使用npm install -g @angular/cli再次安装
我也尝试过使用npm cache clean和npm cache verify,但它们都不能很好地工作。
我已经检查并将node和npm更新到最新版本,但仍然抛出相同的错误。
$ ng new angular-table
Schematic input does not validate against the Schema: {"
我正在研究角引导模块。当我使用以下命令安装模块时,npm install --save @ng-bootstrap/ng-bootstrap并将模块导入主app模块。然后,我重新运行获取以下错误。
ERROR in Error: Metadata version mismatch for module F:/nodejs/angular4/mybootst
rap3/node_modules/@ng-bootstrap/ng-bootstrap/index.d.ts, found version 4, expect
ed 3, resolving symbol AppModule in F:/
当我运行此命令将版本降级到angular cli 4时,我想创建angular 4项目而不是5. my angular cli版本1.5.0。
npm install -g angular-cli@1.4.9
我得到了错误
npm ERR! code ETARGET
npm ERR! notarget No matching version found for angular-cli@1.4.9
我试图将字符串枚举添加到我的角2项目中,但在使用npm启动项目时出现了错误:
ERROR in e:/projects/dbtool-fullstack/dbtool-client/src/app/shared/models/full-m
odels/enums/Sex.ts (2,10): Type '"Male"' is not assignable to type 'Sex'.
ERROR in e:/projects/dbtool-fullstack/dbtool-client/src/app/shared/models/full-m
o
所以我买了一台新的pc,我想通过github来传递我的angular项目。我用的是1.npm i 2.npm i @angular/cli@latest -D 3. ng update
每次我尝试用ng s运行这个项目时,它总是给我这个错误:
This version of CLI is only compatible with Angular versions ^9.0.0-beta || >=9.0.0 <10.0.0,
but Angular version 8.2.14 was found instead.
Please visit the link below to f
在inetllij idea中使用Karma执行角度测试时出现以下错误
20 11 2019 12:16:27.838:ERROR [karma]: Error: The '@angular-devkit/build-angular/plugins/karma' karma plugin is meant to be used from within Angular CLI and will not work correctly outside of it.
at init (C:\Users\X196360\dev\OCP\ocp-front\node_modules
我有一个离子5项目,需要将它更新为V6,我遵循了正式的文档指南,但是当我试图将with更新到最新版本时,它失败了,出现了以下错误,
C:\Users\Documents\WRepo>npx @angular/cli@13 update @angular/core@13 @angular/cli@13 The installed local Angular CLI version is older than the latest stable version. Installing a temporary version to perform the update. √ Package s
我有一个Angular 10项目,它在本地构建成功,但在jenkins上构建时失败,出现以下错误。 [error] Error: Job name "..getProjectMetadata" does not exist.
at Observable._subscribe (/usr/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/experimental/jobs/simple-scheduler.js:350:23)
at Observable._trySubscri
我已经使用npm分别安装了角CLI包:
npm install --save-dev @angular/cli@latest
当我尝试使用命令cli时,我会得到一个错误:
Unable to find any apps in `.angular-cli.json`.
如何为当前项目生成.angular-cli.json?