{"id":17407,"library":"wiredep-cli","title":"Wiredep CLI","description":"This package, `wiredep-cli`, provides a command-line interface for `wiredep`, a tool designed to automatically inject Bower front-end dependencies into HTML, CSS, and JS files. Its primary function was to automate the inclusion of `<script>` and `<link>` tags based on the `bower.json` manifest. The package, version 0.1.0, and its core dependency `wiredep` (version 0.11.0) were both last updated in March 2016. Given that Bower itself has been officially deprecated since 2017 in favor of modern front-end package managers like npm/Yarn and build tools like Webpack, `wiredep-cli` is no longer actively maintained or relevant for contemporary web development workflows. This tool is part of an abandoned ecosystem.","status":"abandoned","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/taptapship/wiredep-cli","tags":["javascript","bower","package","management","inject","script","dependencies","cli"],"install":[{"cmd":"npm install wiredep-cli","lang":"bash","label":"npm"},{"cmd":"yarn add wiredep-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add wiredep-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This package is a CLI wrapper for the `wiredep` library, which performs the actual dependency injection. `wiredep` itself is also unmaintained.","package":"wiredep","optional":false}],"imports":[],"quickstart":{"code":"npm install -g wiredep-cli\nnpm install -g wiredep # wiredep is often installed globally for CLI use with wiredep-cli\nbower init --yes # Initialize a bower.json if not present\nbower install jquery --save # Install a sample Bower package\n\n# Create a dummy HTML file\ncat > index.html << EOF\n<!doctype html>\n<html>\n<head>\n  <!-- bower:css -->\n  <!-- endbower -->\n</head>\n<body>\n  <!-- bower:js -->\n  <!-- endbower -->\n  <p>Hello from Wiredep!</p>\n</body>\n</html>\nEOF\n\n# Run wiredep-cli to inject dependencies\nwiredep --src index.html\n\ncat index.html # View the updated HTML with injected scripts","lang":"bash","description":"Demonstrates global installation of wiredep-cli and wiredep, initializing Bower, installing a package, and then using `wiredep` command to inject it into an HTML file."},"warnings":[{"fix":"Migrate your project from Bower to a modern package manager (npm, Yarn, pnpm) and a module bundler (Webpack, Rollup, Vite). Manually manage script/link tags or use a build tool plugin for injection.","message":"The entire Bower package manager ecosystem, which `wiredep-cli` relies upon, has been officially deprecated since 2017. Modern front-end development has moved to npm/Yarn/pnpm for package management and Webpack/Rollup/Vite for bundling.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Avoid using this package for new projects. For existing projects, consider a full migration to modern tools as outlined in the previous warning.","message":"`wiredep-cli` and its core `wiredep` library have not been updated since March 2016. This means they are unmaintained and may not work with newer versions of Node.js, npm, or contemporary browser features.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Ensure your HTML, CSS, or JS files contain the correct Bower injection placeholders as specified in the `wiredep` documentation.","message":"The `wiredep` tool (and thus `wiredep-cli`) expects specific `<!-- bower:js -->` and `<!-- endbower -->` HTML comments to identify injection points. Incorrectly placed or missing comments will prevent dependencies from being injected.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Always use `bower install --save <package-name>` when installing front-end components intended for injection. Alternatively, configure `wiredep` to include `devDependencies`.","message":"Packages must be saved as Bower `dependencies` (using `bower install --save`) to be injected by `wiredep` by default. `devDependencies` are typically ignored unless explicitly configured.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-22T00:00:00.000Z","next_check":"2026-07-21T00:00:00.000Z","problems":[{"fix":"Install `wiredep` globally: `npm install -g wiredep`. Also ensure `wiredep-cli` is installed: `npm install -g wiredep-cli`.","cause":"The `wiredep` CLI tool (which `wiredep-cli` wraps or works in conjunction with) is not installed globally or is not in the system's PATH.","error":"wiredep command not found"},{"fix":"Verify `--bowerJson` and `--directory` options point to the correct locations. Check `bower.json` files for missing `main` entries and use `overrides` if necessary. Ensure correct HTML/CSS comment blocks exist for injection. Run `bower install` to ensure components are present.","cause":"This can be due to incorrect paths to `bower.json` or the Bower components directory, missing `main` fields in `bower.json` of dependencies, or improper `<!-- bower:type -->` comments.","error":"Bower components not being injected into HTML/CSS."},{"fix":"Install `wiredep` locally as a dependency: `npm install --save-dev wiredep`.","cause":"Although `wiredep-cli` is a CLI, if `wiredep` itself is invoked programmatically (e.g., in a Gulp/Grunt task), this error indicates `wiredep` is not installed as a local dependency.","error":"Error: Cannot find module 'wiredep'"}],"ecosystem":"npm","meta_description":null}