Windows Installing PHPUnit via PEAR - Installing PHPUnit via PEAR

后端 未结 6 1891
迷失自我
迷失自我 2020-12-13 10:03

When I run:

peardev install phpunit/PHPUnit

I get the following:

No releases available for package \"pear.phpunit.de/PHPUni         


        
6条回答
  •  甜味超标
    2020-12-13 10:24

    could not extract the package.xml file from "C:\Program Files\PHP\tmp\YAML-1.0.5
    .tgz" Unable to create directory 'C:/Program/tmpFA83.tmp'
    Unable to create path for C:/Program/tmpFA83.tmp/package.xml
    

    This is a bug in pear installer. It can't deal with the SPACE in your path and tries to read the wrong files. Installing your php in a folder without a space is the only 'fix' i know about :/


    Update 5:

    pear install --force --alldeps pear/pear
    

    do all channel updates it asks for

    pear install --force --alldeps phpunit/PHPUnit
    

    if asked for channel updates, do those and repeat

提交回复
热议问题