因此,我从 Bitbucket 导入了另一个项目并尝试使用启动它php artisan serve
,我总是收到此错误:
[LogicException]
Key path "file:///var/www/html/DesignViewer5/storage/oauth-private.key" does not
exist or is not readable
当我自己创建项目时,我没有收到此错误,我无法运行任何其他命令。我尝试了“php artisan key:generate”,并得到了完全相同的错误。
我试过:composer update
,并得到这个:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Updating spatie/laravel-permission (1.11.1 => 1.12.0) Downloading: 100%
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
[LogicException]
Key path "file:///var/www/html/DesignViewer5/storage/oauth-private.key" doe
s not exist or is not readable
Script php artisan optimize handling the post-update-cmd event returned with error code 1
有人知道如何修复它吗?谢谢!
我认为这是由于 Laravel Passport 造成的,您应该尝试以下命令:
php artisan passport:install
此命令将创建生成安全所需的加密密钥
访问令牌。此外,该命令将创建“个人访问权限”
和“密码授予”客户端将用于生成访问权限
代币
Source: https://laravel.com/docs/5.4/passport https://laravel.com/docs/5.4/passport
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)