我对Ionic完全陌生,他试图学习和研究现有项目。 我正在尝试安装ionic-app-scripts来运行ionic项目,但是它给出了以下错误(来自错误报告):
4376 warn @angular/animations@6.0.7 requires a peer of @angular/core@6.0.7 but none is installed. You must install peer dependencies yourself.
4377 warn @angular/cdk@6.3.1 requires a peer of @angular/core@>=6.0.0-beta.0 <7.0.0 but none is installed. You must install peer dependencies yourself.
4378 warn @angular/cdk@6.3.1 requires a peer of @angular/common@>=6.0.0-beta.0 <7.0.0 but none is installed. You must install peer dependencies yourself.
4379 warn @angular/material@6.3.1 requires a peer of @angular/core@>=6.0.0-beta.0 <7.0.0 but none is installed. You must install peer dependencies yourself.
4380 warn @angular/material@6.3.1 requires a peer of @angular/common@>=6.0.0-beta.0 <7.0.0 but none is installed. You must install peer dependencies yourself.
4381 warn @ionic-native/local-notifications@4.17.0 requires a peer of @ionic-native/core@^4.11.0 but none is installed. You must install peer dependencies yourself.
4382 warn @ionic-native/local-notifications@4.17.0 requires a peer of rxjs@^5.5.11 but none is installed. You must install peer dependencies yourself.
4383 warn angular-common@0.1.0 requires a peer of @angular/core@^4.0.0 but none is installed. You must install peer dependencies yourself.
4384 warn angular-svg-round-progressbar@2.0.0 requires a peer of @angular/compiler@^6.0.0 but none is installed. You must install peer dependencies yourself.
4385 warn angular-svg-round-progressbar@2.0.0 requires a peer of @angular/common@^6.0.0 but none is installed. You must install peer dependencies yourself.
4386 warn angular-svg-round-progressbar@2.0.0 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
4387 warn angular-svg-round-progressbar@2.0.0 requires a peer of rxjs@^6.0.0 but none is installed. You must install peer dependencies yourself.
4388 warn angular-svg-round-progressbar@2.0.0 requires a peer of zone.js@^0.8.26 but none is installed. You must install peer dependencies yourself.
4389 warn angularfire2@5.0.0-rc.11 requires a peer of @angular/common@^6.0.0 but none is installed. You must install peer dependencies yourself.
4390 warn angularfire2@5.0.0-rc.11 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
4391 warn angularfire2@5.0.0-rc.11 requires a peer of @angular/platform-browser@^6.0.0 but none is installed. You must install peer dependencies yourself.
4392 warn angularfire2@5.0.0-rc.11 requires a peer of @angular/platform-browser-dynamic@^6.0.0 but none is installed. You must install peer dependencies yourself.
4393 warn angularfire2@5.0.0-rc.11 requires a peer of rxjs@^6.0.0 but none is installed. You must install peer dependencies yourself.
4394 warn ng5-slider@1.1.6 requires a peer of @angular/core@^5.0.2 but none is installed. You must install peer dependencies yourself.
4395 warn ng5-slider@1.1.6 requires a peer of @angular/common@^5.0.2 but none is installed. You must install peer dependencies yourself.
4396 verbose stack Error: Refusing to delete F:\Ergotopia\code\ergotopia-ionic\node_modules\.bin\ionic-app-scripts: is outside F:\Ergotopia\code\ergotopia-ionic\node_modules\@ionic\app-scripts and not a link
4396 verbose stack at clobberFail (C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:121:12)
4396 verbose stack at isSafeToRm (C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:114:15)
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:54:5
4396 verbose stack at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:7:26)
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:18:7
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:180:7
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\node_modules\iferr\index.js:13:50
4396 verbose stack at _readAllLinks (C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:215:28)
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\node_modules\iferr\index.js:13:50
4396 verbose stack at resolveSymlink (C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:226:22)
4396 verbose stack at _readAllLinks (C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:217:5)
4396 verbose stack at readAllLinks (C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:212:3)
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:179:5
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\node_modules\iferr\index.js:13:50
4396 verbose stack at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
4396 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:153:16
4397 verbose cwd F:\Ergotopia\code\ergotopia-ionic
4398 verbose Windows_NT 10.0.17134
4399 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@ionic/app-scripts"
4400 verbose node v12.7.0
4401 verbose npm v6.10.0
4402 error path F:\Ergotopia\code\ergotopia-ionic\node_modules\.bin\ionic-app-scripts
4403 error code EEXIST
4404 error Refusing to delete F:\Ergotopia\code\ergotopia-ionic\node_modules\.bin\ionic-app-scripts: is outside F:\Ergotopia\code\ergotopia-ionic\node_modules\@ionic\app-scripts and not a link
4405 error File exists: F:\Ergotopia\code\ergotopia-ionic\node_modules\.bin\ionic-app-scripts
4406 error Move it away, and try again.
4407 verbose exit [ 1, true ]
在强制清除缓存仍然无济于事之后,我尝试安装它。由于还提到要从模块中删除ionic-app-script并重试,因此我也这样做了。
离子信息:
离子:
ionic (Ionic CLI) : 4.0.6
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.0
科尔多瓦:
cordova (Cordova CLI) : not installed
Cordova Platforms : not available
系统:
NodeJS : v12.7.0 (C:\Program Files\nodejs\node.exe)
npm : 6.10.0
OS : Windows 10
环境:
ANDROID_HOME : not set
应该怎么做才能使项目运行?我是否缺少任何安装,或者与我使用的版本有关?