Skip to content

Django-tailwind NPM_BIN_PATH location node #3404

Answered by foarsitter
adammakowskidev asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by adammakowskidev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #3390 on November 14, 2021 13:24.