我在GitHub中有一个角度项目作为私有存储库,并将其克隆到我的设备并运行npm install
以从package.json生成node_module,我在检查窗口中收到此错误:
这是我的package.json文件:
{
"name": "my-project",
"version": "4.3.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --port 4200",
"hmr": "ng serve --host 0.0.0.0 --port 4200 --hmr",
"test": "ng test",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/animations": "^7.1.3",
"@angular/cdk": "^7.1.3",
"@angular/common": "^7.1.3",
"@angular/compiler": "^7.1.3",
"@angular/core": "^7.1.3",
"@angular/flex-layout": "^8.0.0-beta.26",
"@angular/forms": "^7.1.3",
"@angular/http": "^7.1.3",
"@angular/platform-browser": "^7.1.3",
"@angular/platform-browser-dynamic": "^7.1.3",
"@angular/router": "^7.1.3",
...
},
....
}
答案 0 :(得分:0)
您正在使用7.1.3的每个依赖项,但您的@ angular / flex-layout ID 8.0 因此,您需要降级该版本或将其他版本升级到8
npm我@ angular / flex-layout @ 7.0.0-beta.24 希望对您有帮助!