Docker Community Forums

Share and learn in the Docker community.

Error "npm ERR! Refusing to delete /src/node_modules/.bin/tslint: is outside /src/node_modules/tslint and not a link" when docker-compose up


(Temcgee7) #1

Hey everyone,

I’m having an issue when trying to run docker-compose up that has me stuck. Here is my setup:

OS: Windows 10
App: Angular 4 app
Steps to reproduce:
My dockerfile:

FROM node:latest
RUN mkdir /src
WORKDIR /src
COPY package.json /src
RUN npm install
COPY . /src
EXPOSE 40100
CMD [“npm”, “start”]

My Docker-compose.yml file:

version: "2"
services:
angular:
build: .
ports:
- "40100:40100"
command: bash -c “npm install && npm run start:docker”

The error I’m receiving:

Any help would be amazing :slight_smile: