Install yarn in a docker container says missing dependency Install yarn in a docker container says missing dependency docker docker

Install yarn in a docker container says missing dependency


robertklep is right - if you check the Dockerfile for Node you'll see they install Node by downloading the TAR, not through APT. You can check this by running an interactive container:

> docker run -it node:6.7.0 bashroot@465fa07437c9:/# dpkg -s nodejsdpkg-query: package 'nodejs' is not installed and no information is available

You can use NPM in your Dockerfile instead:

FROM node:6.7.0RUN npm install -g yarn