- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Angular 的新手并接手了另一个开发人员开始的项目。我已经安装了 Angular 并执行了 npm install 但我一直收到“@anuglar/compiler-cli”包未正确安装。到目前为止,这是我尝试过的:
终端错误:
Error: The "@angular/compiler-cli" package was not properly installed.
at Object.<anonymous> (/Users/Jack/Documents/Github/t-dashboard/node_modules/@ngtools/webpack/src/index.js:14:11)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/Jack/Documents/Github/t-dashboard/node_modules/@angular/cli/tasks/eject.js:10:19)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
包.json
{
"name": "genesis-ui",
"version": "1.5.11",
"description": "Bootstrap 4 Admin Template",
"author": "",
"url": "https://genesisui.com",
"copyright": "Copyright 2016 creativeLabs Łukasz Holeczek",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng serve",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
"pree2e": "webdriver-manager update",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/common": "2.2.3",
"@angular/compiler": "2.2.3",
"@angular/core": "2.2.3",
"@angular/forms": "2.2.3",
"@angular/http": "2.2.3",
"@angular/platform-browser": "2.2.3",
"@angular/platform-browser-dynamic": "2.2.3",
"@angular/router": "3.2.3",
"@angular/upgrade": "2.2.3",
"@types/lodash": "4.14.40",
"angular-calendar": "0.4.0",
"angular2-datatable": "0.5.2",
"angular2-ladda": "^1.0.6",
"angular2-moment": "^1.1.0",
"angular2-toaster": "1.0.2",
"chart.js": "^2.3.0",
"core-js": "^2.4.0",
"date-fns": "1.10.0",
"moment": "^2.17.0",
"ng2-bootstrap": "^1.1.16",
"ng2-charts": "^1.4.4",
"ng2-select": "^1.1.2",
"ng2-timeago": "^1.0.6",
"rxjs": "5.0.0-rc.4",
"ts-helpers": "^1.1.2",
"zone.js": "0.7.2"
},
"devDependencies": {
"@types/jasmine": "^2.5.37",
"codelyzer": "1.0.0-beta.4",
"jasmine-core": "^2.5.2",
"jasmine-spec-reporter": "2.7.0",
"karma": "1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "4.0.11",
"ts-node": "1.7.0",
"tslint": "4.0.2",
"typescript": "2.3.4"
}
}
更新 1
感谢您的回复,但仍然遇到同样的问题。这是我使用的命令:
npm i -S @angular/compiler-cli
-> 添加了 "dependencies":{.., "@angular/compiler-cli": "^4.2.3",...
在 package.json 中npm i -D @angular/cli
-> 添加了 "devDependencies":{..., "@angular/cli": "^1.1.2",.. .
npm i -S @angular/compiler-cli
-> 添加了 "devDependencies":{..., "@angular/compiler-cli": "^1.1.2",. ..}
然后 npm 安装。更新 2
在 npm install
上,我在执行过程中看到了一些警告。关于警告的全部内容的任何想法?npm WARN @angular/compiler-cli@4.2.3 需要 @angular/compiler@4.2.3 的对等体,但没有安装。
npm WARN @angular/compiler-cli@4.2.3 需要 @angular/core@4.2.3 的对等体,但没有安装。
npm WARN @angular/core@2.2.3 需要 rxjs@5.0.0-beta.12 的对等体,但没有安装。
npm WARN @angular/core@2.2.3 需要 zone.js@^0.6.21 的对等体,但没有安装。
npm WARN @angular/http@2.2.3 需要 rxjs@5.0.0-beta.12 的对等体,但没有安装。
npm WARN @angular/router@3.2.3 需要 rxjs@5.0.0-beta.12 的对等体,但没有安装。
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-alpha.26 需要 @angular/core@^4.0.3 的对等体,但没有安装。
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-alpha.26 需要 @angular/common@^4.0.3 的对等体,但没有安装。
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-alpha.26 需要 @angular/forms@^4.0.3 的对等体,但没有安装。
npm WARN angular2-ladda@1.2.1 需要 @angular/core@^4.0.0 的对等体,但没有安装。
npm WARN angular2-toaster@1.0.2 需要 rxjs@5.0.0-beta.12 的对等体,但没有安装。
npm WARN codelyzer@1.0.0-beta.4 需要 tslint@^3.9.0 的对等体,但没有安装。
npm WARN ng2-bootstrap@1.6.3 需要 @angular/common@^2.3.1 的对等体 || >=4.0.0 但没有安装。
npm WARN ng2-bootstrap@1.6.3 需要 @angular/compiler@^2.3.1 的对等体 || >=4.0.0 但没有安装。
npm WARN ng2-bootstrap@1.6.3 需要 @angular/core@^2.3.1 的对等体 || >=4.0.0 但没有安装。
npm WARN ng2-bootstrap@1.6.3 需要 @angular/forms@^2.3.1 的对等体 || >=4.0.0 但没有安装。
npm WARN ng2-charts@1.6.0 需要 @angular/common@^2.3.0 的对等体 || >=4.0.0 但没有安装。
npm WARN ng2-charts@1.6.0 需要 @angular/core@^2.3.0 的对等体 || >=4.0.0 但没有安装。
npm WARN ng2-select@1.2.0 需要 @angular/common@^2.3.0 的对等体,但没有安装。
npm WARN ng2-select@1.2.0 需要 @angular/core@^2.3.0 的对等体,但没有安装。
还是一样的错误。还有其他建议吗?提前致谢。
最佳答案
您缺少编译器 cli 包,只需重新安装即可
npm i -S @angular/compiler-cli
您的 package.json
似乎也缺少开发依赖项中的 angular cli,所以这样做
npm i -D @angular/cli
关于javascript - 错误 : "@anuglar/compiler-cli" package was not properly installed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44642036/
我在运行 compile test:compile it:compile经常并且...希望将击键次数减少到类似 *:compile 的数量。 .不过,它似乎不起作用。 $ sbt *:compile
有人可以给我这个问题的提示(或整个解决方案!): 在 Clojurescript 项目中,如何自动将编译日期/时间硬编码在符号中,以便在使用应用程序时显示? 谢谢。 最佳答案 有多种解决方案: 使用l
我是 ember.js 框架的新手,使用 ruby on rails 和 ember.debug.js -v 1.10.1(最新版本)。我一直在网上看到 ember 更改了这个最新的补丁,但我不知
我不是 Fortran 程序员(只是短暂的经验),但我需要编译一个部分用 F77 编写的程序。在我之前有人用 Absoft 编译器编译过它,但现在我需要在另一台机器上用 g77 重复这个过程。对于 A
我运行命令 mvn clean package 我得到了上面的错误我的 pom 是: http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0
我有以下问题。 我想在测试编译阶段排除一些.java文件(** / jsfunit / *。java),另一方面,我想在编译阶段包括它们(id我使用tomcat启动tomcat:运行目标) ) 我的p
符合 wikipedia A compiler is a computer program (or set of programs) that transforms source code writt
我想构建项目,但出现如下错误: 无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile
当我通过右键单击项目名称进行 Maven 安装时,出现以下错误: [INFO] Scanning for projects... [WARNING] [WARNING] Some proble
我是 Maven 的新手,我想将我的应用程序导入到 Maven。和以前一样,我想将我的 ejb 项目中的类引用到我的 war 项目中。我在类中没有错误,但是如果我在我的父项目上安装 maven,那么我
当我将 ASP.NET Web 应用程序部署到生产环境时,我使用配置转换来删除 debug="true"来自 .但是,就在今天,我注意到 web.config 中的另一个部分如下所示:
This question already has answers here: Maven Compilation Error: (use -source 7 or higher to enable
我正在使用 Maven 3.0.5 和 Spring Tool Source 3.2 并安装了 Maven 插件。当我尝试执行“运行方式---> Maven 安装”时,出现以下错误: [INFO] S
我试图用 AngularJS 创建我自己的递归指令,它调用自己以漂亮的 JSON 格式转换 View 中的对象。好吧,首先我使用 ng-include 调用带有模板的脚本,在其中使用 ng-if 验证
可以通过 @suppress annotation使用Google的Closure Compiler在每个文件的基础上禁止显示警告。但是,似乎无法同时抑制多个警告-例如globalThis和check
假设一个拥有 10 到 20 年经验的熟练开发人员从未构建过编译器或模拟器,哪一个会更具挑战性? 你能比较一下会成为障碍的问题吗? 谢谢。 最佳答案 仿真和编译是完全不同的,但由于两者都被认为是“低级
最近发现Vim中有一个命令叫compiler。您可以使用任何常见的编译器(例如,:compiler gcc、:compiler php 等)来调用它,但它似乎没有任何立竿见影的效果。 我在联机帮助页上
我试图从 spring.io 指南中部署最简单的应用程序 Guide 但是我有一些麻烦.. 我做了什么: 创建的项目。 (来自 spring.io 教程) 下载 heroku CLI 在 Intell
每当进行 Maven Build..>clean install 时,我都会遇到此错误。我尝试过使用不同版本的插件并添加 testFailureIgnore 属性,但问题仍然存在。请找到下面的 POM
我有一个 web 应用程序,我尝试使用 maven 进行编译,不幸的是,在执行 mvn clean package 时它不起作用。 stackoverflow 上有很多问题看起来都一样,但没有解决了我
我是一名优秀的程序员,十分优秀!