2

我在 Artison 迁移和播种识别类方面遇到问题。我读过 composer dumpautoload 可以解决这个问题,但我现在在 Cloud9 上运行 dump-autoload 时遇到问题。

当我运行时:$ composer dump-autoload

我收到以下错误:

[ErrorException]
file_put_contents(/home/ubuntu/workspace/vendor/composer/autoload_namespaces.php): failed to open stream: Permission denied

当我运行时:

$ composer update

我得到以下信息:

Cannot create cache directory /home/ubuntu/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/ubuntu/.composer/cache/files/, or directory is not writable. Proceeding without cache
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Removing symfony/yaml (v3.1.5)
Update failed (Could not delete /home/ubuntu/workspace/vendor/symfony/yaml/Dumper.php: )

看起来是权限问题。我的问题是:如何在 Cloud9 环境中解决这些问题?

4

0 回答 0