file_get_contents(/opt/bitnami/php/composer/config.json): failed to open stream: Permission denied
composer require codercat/jwk-to-pem
명령어를 쳤더니 아래의 에러가 발생하네요.
[RuntimeException]
Could not read /opt/bitnami/php/composer/config.json
file_get_contents(/opt/bitnami/php/composer/config.json): failed to open stream: Permission denied
에러의 원인은 간단합니다.
/opt/bitnami/php/composer/config.json 파일이 권한이 없어서 읽지를 못해 생긴 문제입니다.
sudo su 후에
chown -R bitnami /opt/bitnami/php/composer/
위의 명령어를 실행하면 문제가 해결됩니다.
그 후에 다시 composer require codercat/jwk-to-pem 를 해주면 끝입니다.
설치가 잘 되네요 ㅎㅎ
Using version ^0.0.3 for codercat/jwk-to-pem
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing phpseclib/phpseclib (2.0.27): Downloading (100%)
- Installing codercat/jwk-to-pem (0.0.3): Downloading (100%)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
phpseclib/phpseclib suggests installing ext-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)
Writing lock file
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!
댓글 영역