npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jagcolombat/repair-mismatch

v1.1.5

Published

Utility for repair error in metadata version mismatch between versions of Angular

Readme

Repair Mismatch

Is a utility for repair error in metadata version mismatch between versions of Angular.

Reason:

If you have a Angular project 4 and you need use a package compiled with Angular 5 or higher, you could see this error: "ERROR in Metadata version mismatch for module ..." Usually this succeed because of that metadata files version 4 of package can't understand by the compiler because your Angular 4 project only can read metadata files up to version 3. Then appear this utility. Other solution is upgrade your project and maybe the best, but not always is possible.

Installation:

npm i @jagcolombat/repair-mismatch

Configure:

The module repairMismatch can receive like parameter one object with three properties: mismatch, modules and useState.

modules: This property is required and expect a string array of node modules name´s, that you have in your folder node_modules or will have after npm install. These must are modules compiled with Angular 5 or higher.

useState: This property is used for optimize the repairMismatch process. Expect a boolean value and by default is false.

mismatch: This property is used for optimize the repairMismatch process. Expect a boolean value and by default is false. This property is used on combination with property useState.

If useState is set to true, when finish the repairMismatch process, mismatch will set to true. Of this manner when you run again the repairMismatch process, this verify if already was executed process, indicated by mismatch property equal to true, and not run again.

However, if you want force rerun again repairMismatch process, and in previous repairMismatch process, you set useState to true, you need set mismatch property to false for this new process.

On other hand, if you want always that execute repairMismatch process ignore mismatch property and rerun the process set useState to false.

Example of use:

  1. In an Angular 4 project install repair-mismatch module

    npm i @jagcolombat/repair-mismatch --save-dev

  2. Create a file JavaScript, for example rpmm.js, and input the following snippet code:

    const rpmm = require('repair-mismatch');
    rpmm({ modules: ['ngx-vis'] });

    Note: In this case i use [email protected] (compiled with Angular 6) and I want to use this in an Angular 4 project.

  3. In package.json of your Angular 4 project in section script add the following:

    "prestart": "node rpmm.js"

  4. When you execute npm start, for serve your angular-cli project, before is executed the script "prestart" and therefore the repairMismatch process.