【问题标题】:Why am i getting 'install peer dependencies' error when installing inertia.js within a vue.js project?为什么在 vue.js 项目中安装惯性.js 时出现“安装对等依赖项”错误?
【发布时间】:2021-08-23 10:55:59
【问题描述】:

我想在 vue.js 应用程序中使用惯性.js,但在遵循默认设置说明时出错:

npm install @inertiajs/inertia @inertiajs/inertia-vue3

错误:

@inertiajs/inertia-vue3@0.5.2 requires a peer of vue@^3.0.0 but none is installed. You must install peer dependencies yourself.

我已经尝试过以前的版本并单独安装 vue,但仍然遇到同样的错误。我错过了什么?谢谢

【问题讨论】:

  • 认为我已经通过使用以下代码手动安装 vue3 的对等依赖项来修复警告:npm install --save-dev "vue@^3.0.0"

标签: vue.js inertiajs


【解决方案1】:

对于遇到相同警告消息的任何人,运行此命令以安装对等依赖项并修复警告:npm install --save-dev "vue@^3.0.0"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-02
    • 2020-08-27
    • 2011-11-18
    • 2020-10-15
    • 2020-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多