我想进行部署,但我不能。我不知道为什么。
我运行了composer install
命令来生成锁定文件...
错误日志:
ERROR: No 'composer.lock' found!
A 'composer.lock' file was not found in your project, but there
is a 'composer.json' file with dependencies inside 'require'.
The lock file is required in order to guarantee reliable and
reproducible installation of dependencies across platforms and
deploys. You must follow the Composer best practice of having
your lock file under version control in order to deploy. The
lock file must not be in your '.gitignore'.
我的.gitignore
:
/vendor
/.idea
Homestead.json
Homestead.yaml
我提交了文件。我最近的 3 次提交(从 git log --oneline
次(:
19cb5e3 (HEAD -> demo) env update
2ce2333 added composer.lock
285922a Demo
您可以删除供应商文件夹 + composer.lock 然后尝试运行 composer 安装吗?