我正在尝试使用建立一个项目

  • 离子版本3.2.0
  • 科尔多瓦CLI:8.0.0
  • 节点12.13.1(lts)
  • 使用Windows 10(如果有帮助)

当我尝试运行命令ionic cordova platform add [email protected] ,终端提示我? Looks like this is an angular project, would you like to install @ionic/cli-p lugin-angular and continue? (Y/n) ? Looks like this is an angular project, would you like to install @ionic/cli-p lugin-angular and continue? (Y/n) ? Looks like this is an angular project, would you like to install @ionic/cli-p lugin-angular and continue? (Y/n) ,然后当我按y和ENTER键时,将出现错误消息。

错误消息的图像

试图单独运行此命令npm install --save-dev --save-exact @ionic/[email protected]但显示相同的错误。 寻找并尝试了许多解决方案,但没有用。 这变得非常令人沮丧。 你们可以帮我吗?

我之前尝试过的一些解决方案对错误没有影响。 它一直在继续。

  1. npm install -g @angular/angular-cli (仍然提示我运行? Looks like this is an angular project, would you like to install @ionic/cli-p lugin-angular and continue? (Y/n)然后出现错误)

  2. npm set registry https://registry.npmjs.org/ (错误消息未更改)

  3. npm install @ionic/cli-plugin-cordova npm uninstall -g ionic npm install -g [email protected]npm install @ionic/cli-plugin-cordova npm uninstall -g ionic npm install -g [email protected]相同错误)

* Ionic&Cordova的新手。 有人可以帮忙吗?

未解决问题?本站智能推荐: