Skip to content

Permission denied error when installing pluginΒ #128

@hahamini

Description

@hahamini

πŸ› Bug Report

πŸ€·β€β™€οΈ What did you do

I get an error after installing the documentation plugin.

I accessed the bash of the docker container (docker exec -it <container> sh) and installed the plugin with the command yarn add @strapi/plugin-documentation.

⛔️ Error log

πŸ•΅οΈβ€β™€οΈ Stack trace

 yarn run v1.22.19
 $ strapi develop
 - Cleaning dist dir /opt/app/dist
 βœ” Cleaning dist dir (6ms)
 - Loading Strapi
 - Building build context
 
 [INFO] Including the following ENV variables as part of the JS bundle:
     - ADMIN_PATH
     - STRAPI_ADMIN_BACKEND_URL
     - STRAPI_TELEMETRY_DISABLED
 βœ” Building build context (91ms)
 - Creating admin
 βœ” Creating admin (365ms)
 [ERROR]  There seems to be an unexpected error, try again with --debug for more information 
 
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚                                              β”‚
 β”‚   Error: EACCES: permission denied, mkdir    β”‚
 β”‚   '/opt/app/src/extensions/documentation'    β”‚
 β”‚                                              β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
 Done in 6.97s.

## πŸ™‡β€β™€οΈ Expected behavior/code

A clear and concise description of what you expected to happen (or code).

## πŸ‘©β€πŸ’» Environment

- πŸ“¦ Node version: default dockerize (node:18-alpine)
- πŸ’» OS: default dockerize (node:18-alpine)

## πŸ’‘ Possible Solution

<!-- Only if you have suggestions on a fix for the bug -->

## πŸ“Ί Additional context/Screenshots

<!-- Add any other context about the problem here. If applicable, add screenshots to help explain. -->

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions