Home  >  Q&A  >  body text

php - composer一个库时遇到这个问题

我要下载gitHub:https://github.com/waylaidwan...这个库
提示用composer下载
This package is available to be installed using Composer via Packagist.
composer require waylaidwanderer/php-steamcommunity
我在我的cmd中输入
composer require waylaidwanderer/php-steamcommunity
弹出这个
Please provide a version constraint for the waylaidwanderer/php-steamcommunity requirement:
然后去composer.json中看版本依赖,输入^2.0 或者3.7.14都报这个错误

为情所困为情所困2686 days ago490

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 13:10:08

    You need to go to your project folder to use composer. There is also the System32 folder composer which does not have permission to write.

    reply
    0
  • Cancelreply