tag:help.appveyor.com,2012-11-13:/discussions/questions/34236-php-and-nodeAppVeyor: Discussion 2019-04-09T21:00:54Ztag:help.appveyor.com,2012-11-13:Comment/469277272019-02-07T02:03:53Z2019-02-07T02:03:53ZPhp and Node<div><p>Before attempting to install composer try adding these two lines<br></p>
<pre>
<code>- ps: Set-Service wuauserv -StartupType Manual
- cinst -y php</code>
</pre>
which of course should obviate the need to run <code>choco install php</code>
<p>Let us know how it goes.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/469277272019-02-07T17:43:59Z2019-02-07T17:43:59ZPhp and Node<div><p>Thanks for the reply.</p>
<p>That helped. But I can't seem to get php unit installed using composer. I did this:<br></p>
<pre>
<code>- ps: Set-Service wuauserv -StartupType Manual
- cinst -y php
- cinst composer
- cinst 7zip.install</code>
</pre>
<p>But I can't seem to find a way to use composer to install phpunit. I've tried a ton of different ways to do it. But each time it doesn't recognize composer as a command.</p>
<p>Thanks for your help</p>
<p>Chris</p></div>chris.reedertag:help.appveyor.com,2012-11-13:Comment/469277272019-02-07T18:28:32Z2019-02-07T18:28:32ZPhp and Node<div><p>It looks like it just doesn't recognize anything that is installed by the scripts. I executed composer straight from the file which then says php is not recognized... Is there a way to update the command variables in appeveyor?</p></div>chris.reedertag:help.appveyor.com,2012-11-13:Comment/469277272019-02-07T18:43:32Z2019-02-07T18:43:32ZPhp and Node<div><p>Nevermind</p></div>chris.reedertag:help.appveyor.com,2012-11-13:Comment/469277272019-02-07T20:28:56Z2019-02-07T20:28:56ZPhp and Node<div><p>Do you mean that <code>composer</code> or <code>php</code> don't seem to be on the path after you install them?<br>
Have you tried <a href="https://chocolatey.org/docs/helpers-update-session-environment">this method</a>?</p></div>Owen McDonnell