Jetstream 默认安装带有 Vue JS 版本 3 的惯性,即使我们可以在仅安装 Inertia 时选择惯性版本。
我计划使用的 Vue 插件中有几个仍然不支持 Vue3。那么是否可以使用 Vue JS 2 安装 Jetstream?
最佳答案
是的,您可以使用旧的 jetstream 版本。 jetstream 版本 2.2.0 支持 vue3 之前它将支持 vue2。但它可能包含一些错误。 要使用 vue2 安装 jetstream,请在终端上运行注释
laravel new hello
cd hello
编辑 composer.json "laravel/jetstream": "^2.1",
然后运行 composer install; php artisan jetstream:install inertia
在终端上。
最后运行 npm install; npm 运行开发; php artisan migrate
在终端上。
关于laravel - 使用 Vue JS 2 安装 Laravel Jetstream,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67149335/