创建新的laravel项目时权限被拒绝

时间:2018-05-31 09:41:50

标签: php laravel permissions installation

我正在尝试使用laravel命令Crafting application... PHP Warning: ZipArchive::extractTo(C:\xampp\htdocs/wub/server.php): failed to open stream: Permission denied in C:\Users\Fathi\AppData\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php on line 151 Warning: ZipArchive::extractTo(C:\xampp\htdocs/wub/server.php): failed to open stream: Permission denied in C:\Users\Fathi\AppData\Roaming\Composer\vendor\laravel\installer\src\NewCommand.php on line 151 You should verify that the "storage" and "bootstrap/cache" directories are writable. Composer could not find a composer.json file in C:\xampp\htdocs\wub To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section Application ready! Build something amazing. 创建一个新的laravel项目 这给出了一个错误

$xml = <<<'XML'
<response>
  <result>
    <stats>
      <count>21</count>
    </stats>
  </result>
</response>
XML;

// SimpleXML maps elements to properties
$response = new SimpleXMLElement($xml);
var_dump(
  (int)$response->result->stats->count
);

// DOM can use Xpath expressions to extract values
$document = new DOMDocument();
$document->loadXml($xml);
$xpath = new DOMXpath($document);
var_dump(
  $xpath->evaluate('number(/response/result/stats/count)')
);

我使用的是Windows电脑

0 个答案:

没有答案