{"id":23587,"library":"django-npm","title":"django-npm","description":"A Django staticfiles finder that uses npm. Integrates Node.js packages into Django's static file system by scanning node_modules directories. Current version: 1.0.1. Low maintenance, occasional updates for Django compatibility.","status":"active","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/kevin1024/django-npm","tags":["django","staticfiles","npm","node_modules","static"],"install":[{"cmd":"pip install django-npm","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Staticfiles integration required","package":"Django","optional":false}],"imports":[{"note":"","wrong":null,"symbol":"NpmFinder","correct":"from django_npm.finders import NpmFinder"}],"quickstart":{"code":"INSTALLED_APPS = [\n    'django_npm',\n    # ...\n]\nSTATICFILES_FINDERS = [\n    'django.contrib.staticfiles.finders.FileSystemFinder',\n    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\n    'django_npm.finders.NpmFinder',\n]","lang":"python","description":"Add 'django_npm' to INSTALLED_APPS and include NpmFinder in STATICFILES_FINDERS. Then run 'python manage.py collectstatic' to integrate npm packages."},"warnings":[{"fix":"Place NpmFinder last in the STATICFILES_FINDERS list.","message":"NpmFinder must come after the default finders; otherwise, default finders may override npm static files, leading to missing assets.","severity":"gotcha","affected_versions":"all"},{"fix":"Run 'npm install' in your project directory before 'collectstatic'.","message":"django-npm does not automatically install npm packages or run 'npm install'. You must ensure node_modules is populated in your project's static root or a discoverable location.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.9+.","message":"Python 3.8 and lower are no longer supported. Requires Python >= 3.9.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Add 'django_npm' to INSTALLED_APPS and ensure you import from 'django_npm.finders'.","cause":"Missing 'django_npm' in INSTALLED_APPS or incorrect import path.","error":"ModuleNotFoundError: No module named 'django_npm'"},{"fix":"Add NPM_STATIC_FILES_PREFIX = 'npm' to your settings (or any prefix of your choice).","cause":"The setting NPM_STATIC_FILES_PREFIX is required in Django settings when using NpmFinder. It defines the subdirectory within STATIC_ROOT for npm files.","error":"ImproperlyConfigured: The NPM_STATIC_FILES_PREFIX setting is required."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}