D
D
Dmitry2021-11-15 21:53:08
React
Dmitry, 2021-11-15 21:53:08

What causes permission denied?

Good evening.

I'm trying to put react in docker-e.

Dockerfile

FROM node:17-alpine
WORKDIR /app

docker-compose
poisk-node-cli:
    build:
      context: ./poisk/docker/development/node
    volumes:
      - ./poisk:/app


Run the command at the root of the project
docker-compose run --rm poisk-node-cli npx create-react-app react-app --template cra-template-pwa


As a result, the error
docker-compose run --rm poisk-node-cli npx create-react-app react-app --template cra-template-pwa
Creating project_poisk-node-cli_run ... done
Need to install the following packages:
  create-react-app
Ok to proceed? (y) y
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
sh: create-react-app: Permission denied
ERROR: 127


Same issue with node:15-alpine and node:16-alpine.

If you use node:14-alpine, then everything works without problems, the project is created.

What causes the sh: create-react-app: Permission denied error and how to solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-11-16
@slo_nik

sudo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question