-1

I am working on an existing project that was built by Droopler distribution and docker4drupal. As per Droopler distribution documentation, it requires npm and gulp to compiled sass easily and docker4drupal don't have it by default.

I tried to install in the container by sudo apt-get install npm and it says:

sudo: apt-get: command not found

Is there any way to install npm and gulp in docker4drupal for my existing project?

usmanjutt84
  • 353
  • 5
  • 21

1 Answers1

2

I am able to install npm & gulp, access php container and install those.

access php container docker-compose exec php bash install npm sudo apk update && sudo apk add npm install gulp globally sudo npm install -g gulp

This is how I do it, maybe there is a better way.

Reference: Install npm and gulp

usmanjutt84
  • 353
  • 5
  • 21