Django-tailwind NPM_BIN_PATH location node #3404
-
Hi
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is the image of your local docker Django container: https://github.com/cookiecutter/cookiecutter-django/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/compose/local/django/Dockerfile You need to modify the Django Dockerfile and install node by yourself. This guide will help you (option 2 has my preference): https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04 Last but not least: if you need help, Github issues is not the best place to get it. Try stackoverflow for issues not related to this project. |
Beta Was this translation helpful? Give feedback.
-
I am attempting to integrate django-tailwind with this cookie cutter as well. There seems to be an issue with the docker file process, as I am encountering errors with DATABASE_URL, CELERY_BROKER_URL, USE_DOCKER, and NPM_BIN_PATH. |
Beta Was this translation helpful? Give feedback.
This is the image of your local docker Django container: https://github.com/cookiecutter/cookiecutter-django/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/compose/local/django/Dockerfile
Do you notice the word
node
does not occur at all? Thats right, the node container is responsible for the processing of css and js and is completely separated from the Django container. Referencing npm in the Django container is thus not possible since it is not installed at all.You need to modify the Django Dockerfile and install node by yourself. This guide will help you (option 2 has my preference): https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04
Last but no…