Install node & npm in a Heroku Python project.
The official Heroku Python buildpack now has (experimental) support for a pre_compile hook, this pre_compile script installs node & npm. Put it in bin/pre_compile in your project then npm packages in npm_requirements.txt will be installed automatically, conceptually similar to the way Python packages in your requirements.txt are installed.
I've used this to install lesscss and yuglify for use with django-pipeline so that the collectstatic that the Python buildpack runs automatically works.