npm VS Bower

Compare npm vs Bower and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
npm Bower
48 11
17,233 15,010
- 0.0%
2.1 0.0
over 3 years ago over 1 year ago
JavaScript JavaScript
Artistic License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

npm

Posts with mentions or reviews of npm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-20.
  • XML is better than YAML
    17 projects | news.ycombinator.com | 20 Sep 2023
    The fact that JSON doesn't support comments is so annoying, and I always thought that Douglas Crockford's rationale for this basically made no sense ("They can be misused!" - like, so what, nearly anything can be misused. So without support for comments e.g. in package.json files I have to do even worse hacky workaround bullshit like "__some_field_comment": "this is my comment"). There is of course jsonc and JSON5 but the fact that it's not supported everywhere means 10 years later we still can't write comments in package.json (there is https://github.com/npm/npm/issues/4482 and about a million related issues).
  • Jest not recommended to be used in Node.js due to instanceOf operator issues
    9 projects | news.ycombinator.com | 30 Jun 2023
    Things like the sparkline charts on npmjs (e.g. https://www.npmjs.com/package/npm ) are interactive SVGs. I think they're pretty common for data visualizations of all kinds
  • JavaScript registry NPM vulnerable to 'manifest confusion' abuse
    3 projects | news.ycombinator.com | 27 Jun 2023
    I actually did a POC 7 years ago about this - https://github.com/tanepiper/steal-ur-stuff

    It was reported to npm at the time, but they chose to ignore it - https://github.com/npm/npm/issues/17724

  • I'm a Teapot
    4 projects | news.ycombinator.com | 26 May 2023
    Every time this pops up, I'm reminded of the day that the NPM registry started returning 418 responses.

    I remember being at a training course that day and my manager asking me what we could do to fix it because our CI was failing to pull dependencies from NPM.

    Trying to explain that NPM was returning a status code intended as an April Fools joke and which was never meant to see the light of production was quite difficult

    https://github.com/npm/npm/issues/20791

  • Dissecting Npm Malware: Five Packages And Their Evil Install Scripts
    4 projects | /r/javascript | 18 Apr 2023
    I should really get around to how I discovered this 6 years ago and still nothing done about it
  • Attackers are hiding malware in minified packages distributed to NPM
    4 projects | /r/javascript | 30 Mar 2023
    Whenever something like this comes up I usually have to tap the sign (and the original report)
  • NPM Vs PNPM
    1 project | /r/npm | 23 Mar 2023
    NPM is not "Node Package Manager". https://www.npmjs.com/package/npm
  • A not so unfortunate sharp edge in Pipenv
    8 projects | news.ycombinator.com | 20 Dec 2022
    > which can be overriden with env setting

    Support for this is not great. Lots of packages still don't support this properly. My experience matches the 2015 comment https://github.com/npm/npm/issues/775#issuecomment-71294085

    > Not sure why "symlinks" would be involved.

    If you make your node_modules a symlink, multiple packages will fail. Even if you're not interested in doing that, others are.

    > What NPM does is leaps and bounds ahead

    Unless you change your node / gyp version. It doesn't really have a concept of runtime version. You can restrict it, but not have two concurrent versions if they conflict.

  • Front-end Guide
    54 projects | dev.to | 23 Nov 2022
    [email protected] was released in May 2017 and it seems to address many of the issues that Yarn aims to solve. Do keep an eye on it!
  • Framework axios pushed a broken update, crippling thousands of websites
    6 projects | /r/programming | 7 Oct 2022
    I think it's had been supposed to do that since forever. Apart from some bug in npm 5.3. Are you sure your package-lock versions actually conform to the semver ranges in your package.json?

Bower

Posts with mentions or reviews of Bower. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-04.
  • 5 NPM Alternatives You Should Try
    2 projects | dev.to | 4 Mar 2023
    Bower is a package manager specifically designed for front-end web development. It can be used to manage JavaScript, CSS, and HTML packages and dependencies. It was developed by Twitter and is known for its simplicity and ease of use. However, it is worth noting that Bower is no longer actively maintained, and developers are encouraged to use other package managers like Yarn or PNPM instead.
  • zachrytylerwood/vscode
    4 projects | /r/u_RutabagaImpossibleZW | 14 Feb 2023
    Bower dependency directory (https://bower.io/)
  • The Emperor's New Library
    5 projects | dev.to | 13 Feb 2023
    What we see, a decade ago, are that many of the "popular" libraries, frameworks, and methods, not surprisingly, have gone by the wayside, a lot that have remained in current code as difficult-to-removemodernize legacy cruft (Bower, Gulp, Grunt, Backbone, Angular 1, ...), and then we have the small minority that are still here. Some that remain have had their utility lessened/questioned by platform and language improvements (jQuery, lodash, ...), but very, very few exist that are the same now as they were then. Another fun historical reference: issue #118 of "JavaScript Weekly" (February 22, 2013) includes a first link out to asm.js.
  • Assets #2 - installation
    5 projects | /r/yii3 | 13 Jan 2023
    In this way, all the packages that we add in the require section of composer.json, will be installed in the ./node_modulesdirectory, and their download will be managed by asset-packagist, to see the available packages, you can search for both bower and npm packages.
  • Développer une API Rest avec NodeJS, Express et MongoDB: #1 Configuration du projet
    3 projects | dev.to | 11 Sep 2022
    # Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* .pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage *.lcov # nyc test coverage .nyc_output # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) .grunt # Bower dependency directory (https://bower.io/) bower_components # node-waf configuration .lock-wscript # Compiled binary addons (https://nodejs.org/api/addons.html) build/Release # Dependency directories node_modules/ jspm_packages/ # Snowpack dependency directory (https://snowpack.dev/) web_modules/ # TypeScript cache *.tsbuildinfo # Optional npm cache directory .npm # Optional eslint cache .eslintcache # Optional stylelint cache .stylelintcache # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ .rts2_cache_es/ .rts2_cache_umd/ # Optional REPL history .node_repl_history # Output of 'npm pack' *.tgz # Yarn Integrity file .yarn-integrity # dotenv environment variable files .env .env.development.local .env.test.local .env.production.local .env.local # parcel-bundler cache (https://parceljs.org/) .cache .parcel-cache # Next.js build output .next out # Nuxt.js build / generate output .nuxt dist # Gatsby files .cache/ # Comment in the public line in if your project uses Gatsby and not Next.js # https://nextjs.org/blog/next-9-1#public-directory-support # public # vuepress build output .vuepress/dist # vuepress v2.x temp and cache directory .temp .cache # Docusaurus cache and generated files .docusaurus # Serverless directories .serverless/ # FuseBox cache .fusebox/ # DynamoDB Local files .dynamodb/ # TernJS port file .tern-port # Stores VSCode versions used for testing VSCode extensions .vscode-test # yarn v2 .yarn/cache .yarn/unplugged .yarn/build-state.yml .yarn/install-state.gz .pnp.*
  • Programming Language with sun conure logo ?
    1 project | /r/ProgrammingLanguages | 29 Nov 2021
    Like this?
  • Yeoman‎ - Acelerando a criação de novos projetos
    8 projects | dev.to | 31 Oct 2021
  • Can someone please decipher all this for me?
    2 projects | /r/romhacking | 26 Aug 2021
    # Bower dependency directory (https://bower.io/) bower_components
  • Vite vue ts tailwind template: Setup Jest coverage and add tests
    5 projects | dev.to | 8 Aug 2021
    diff --git a/.gitignore b/.gitignore index d451ff1..0b799e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,122 @@ -node_modules -.DS_Store +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test +.env.production + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +# Project dist-ssr *.local
  • Is this a Gatsby or React error and how can I fix it?
    1 project | /r/gatsbyjs | 26 Feb 2021
    # Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage # nyc test coverage .nyc_output # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt # Bower dependency directory (https://bower.io/) bower_components # node-waf configuration .lock-wscript # Compiled binary addons (http://nodejs.org/api/addons.html) build/Release # Dependency directories node_modules/ jspm_packages/ # Typescript v1 declaration files typings/ # Optional npm cache directory .npm # Optional eslint cache .eslintcache # Optional REPL history .node_repl_history # Output of 'npm pack' *.tgz # dotenv environment variable files .env* # gatsby files .cache/ # Mac files .DS_Store # Yarn yarn-error.log .pnp/ .pnp.js # Yarn Integrity file .yarn-integrity

What are some alternatives?

When comparing npm and Bower you can also consider the following projects:

pnpm - Fast, disk space efficient package manager

corepack - Zero-runtime-dependency package acting as bridge between Node projects and their package managers

yarn - The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry

spm

jam

Duo

jspm

Refraction - A guard that represents a central point of control in your application