我在运行ng build命令时遇到以下错误.删除了node_modules文件夹和npm installe,给出了以下警告
npm WARN angular2-cool-storage@3.1.2 requires a peer of @angular/core@5.0.0 but none was installed.
npm WARN angular2-cool-storage@3.1.2 requires a peer of @angular/common@^5.0.0 but none was installed.
Run Code Online (Sandbox Code Playgroud)
对于ng build下面的id deetail错误:
模块/node_modules/angular2-cool-storage/index.d.ts的元数据版本不匹配,找到版本4,预期3,解析/src/app/app.module.ts中的符号AppModule解析/ src /中的符号AppModule应用程序/ app.module.ts
Package.json是
{
"name": "nova-angular",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.4.3",
"@angular/cdk": "^2.0.0-beta.12",
"@angular/common": "^4.4.3",
"@angular/compiler": "^4.4.3",
"@angular/core": "^4.4.3",
"@angular/forms": "^4.4.3", …Run Code Online (Sandbox Code Playgroud)