在 Onedrive 文件夹中安装 laravel 时权限不足

Insufficient permissions when installing laravel in Onedrive folder

我目前正在尝试使用以下命令在 Onedrive 文件夹中进行新的 Laravel 安装:

laravel new blogcomposer create-project --prefer-dist laravel/laravel blog

不幸的是,我收到以下错误: PHP Warning: file_put_contents(C:\Users\jordy\OneDrive\Websites\www.blog.nl/laravel_7198089e82dcd0b2debf8486652dfae3.zip): failed to open stream: Permission denied in C:\Users\jordy\AppData\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php on line 133,包括几个类似的。

我 运行 我的命令提示符是 Windows 10 上的管理员,我的用户帐户对 Onedrive 文件夹具有完全权限。如果我尝试在 Onedrive 之外的另一个目录中执行此操作,它会正常工作。

这怎么可能? Onedrive 会阻止某些东西吗?

发现问题出在 Bitdefender AntiVirus。我转到应用程序访问(在安全文件设置下),并授予 Apache 和 PHP CLI 权限。现在可以了。

()

实际上,这也解决了 Laravel 安装时的空白页问题。