我需要为我的SF2发行版安装一个软件包(DoctrineFixtures).
我跑的时候
php composer.phar update
Run Code Online (Sandbox Code Playgroud)
我明白了
- 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
Run Code Online (Sandbox Code Playgroud)
看来最后一位开发人员在供应商内编辑了很多文件.
为了解决这个问题,我试过了
php composer.phar update <package_name>
Run Code Online (Sandbox Code Playgroud)
但这似乎不起作用.如何从composer.json更新/安装一个库?