英文:
Unable to install plugins in Ionic Project
问题
我开始了一个新的ionic应用项目,并尝试安装像appminimize这样的插件以及其他capacitor插件。
但是,它一直显示给我一些奇怪的错误。首先,我遇到了rxjs的ERESOLVE错误。我尝试安装了各种版本的rxjs。有时构建会显示错误,说找不到rxjs/observable(在rxjs的新版本中已移除)。
总的来说,这个项目除了界面之外似乎没有什么进展。您能否请指导我出现了什么问题。 错误1 错误2
英文:
I started a new ionic app project. And tried to install plugins like appminimize, and other capacitor plugins.
But, It keeps showing me weird errors. First im getting ERESOLVE error for rxjs. I tried to install various versions of rxjs. The Build sometimes showing error that rxjs/observable is not found. (Its removed in new version of rxjs)
Overall this project is not going anywhere except the ui. Could you please guide me what is going wrong in it.[Error 1
答案1
得分: 1
使用 npm i --legacy-peer-deps
。它告诉 NPM 忽略对等依赖并继续安装。有关更多详情,请查看此链接。
英文:
Use npm i --legacy-peer-deps
. It tells NPM to ignore peer deps and proceed with the installation anyway. Fore more details check this.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论