当我运行
php composer.phar update
我明白了
- Updating twig/twig (dev-master 39d94fa => v1.13.0)
The package has modified files:
M CHANGELOG
M doc/filters/batch.test
M doc/filters/index.rst
M doc/filters/url_encode.rst
M doc/functions/index.rst
M doc/tags/index.rst
M doc/tests/index.rst
M lib/Twig/Autoloader.php
M lib/Twig/Compiler.php
M lib/Twig/CompilerInterface.php
-10 more files modified, choose "v" to view the full list
看起来上一个开发人员编辑了许多 vendor 文件夹内的文件。
为了解决这个问题,我尝试了
php composer.phar update <package_name>
但这似乎不起作用。我如何从composer.json仅更新/安装一个库?
composer.json
文件吗? - cheesemacfly