{"id":18367669,"url":"https://github.com/jwplayer/npm-check-installed-git-tags","last_synced_at":"2026-01-23T05:36:06.823Z","repository":{"id":204724465,"uuid":"709469784","full_name":"jwplayer/npm-check-installed-git-tags","owner":"jwplayer","description":"Verify that version tagged git packages are actually installed correctly.","archived":false,"fork":false,"pushed_at":"2024-08-13T17:55:52.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T19:39:25.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwplayer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-24T19:32:04.000Z","updated_at":"2024-08-13T17:55:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ccdde56-8a71-441e-8f4f-845b6829823c","html_url":"https://github.com/jwplayer/npm-check-installed-git-tags","commit_stats":null,"previous_names":["jwplayer/npm-check-installed-git-tags"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jwplayer/npm-check-installed-git-tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwplayer%2Fnpm-check-installed-git-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwplayer%2Fnpm-check-installed-git-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwplayer%2Fnpm-check-installed-git-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwplayer%2Fnpm-check-installed-git-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwplayer","download_url":"https://codeload.github.com/jwplayer/npm-check-installed-git-tags/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwplayer%2Fnpm-check-installed-git-tags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28680961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T23:22:51.566Z","updated_at":"2026-01-23T05:36:06.790Z","avatar_url":"https://github.com/jwplayer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-check-installed-git-tags\nVerify the package.json version of git dependencies matches what gets installed.\n\n## Automated Usage\nAdd `npm-check-installed-git-tags` as a script:\n\nIf the current package will be installed with npm:\n1. use the following `prepare` script\n2. add this package to `devDependencies`\n```json\n\"script\": {\n  \"prepare\": \"npm-check-installed-git-tags\"\n},\n\"devDependencies\":{\n  \"npm-check-installed-git-tags\": \"\u003cversion\u003e\"\n}\n```\n\nIf the current this package will be installed using git\n1. add the following `postinstall` script\n2. add this package to `dependencies`\n```json\n\"script\": {\n  \"postinstall\": \"npm-check-installed-git-tags\"\n},\n\"dependencies\":{\n  \"npm-check-installed-git-tags\": \"\u003cversion\u003e\"\n}\n```\n\n\u003e We use `postinstall` and `dependencies` for `git` versioned packages because npm lifecycle scripts do special things on prepare for git packages. For more information see the NOTE on the `prepare` lifecycle script here: https://docs.npmjs.com/cli/v8/using-npm/scripts\n\nThis will make your installation fail if you use git dependencies and the tag specified in package.json for the version, is not actually what is installed. This is useful for ci runs so that things fail when package versions are updated.\n\n\n## Manual Usage\nAfter running `npm install` you can run `npm-check-installed-git-tags` to see if packages that are installed are incorrect. If they are you will be prompted to run `npm-check-installed-git-tags-and-fix` to fix the issues in a minimal way (see #2 in the Why is this needed section).\n\n## Disable\nRemove the `prepare`/`postinstall` script or set `DO_NOT_RUN_NPM_CHECK_INSTALLED_GIT_TAGS=1` as an environment variable\n\n## Why is this needed\n\nThe incorrect version can be installed when the git tag is updated in package.json as npm does not update `package-lock.json` for git dependencies in that case. This can be fixed by doing one of two things:\n\n1. minimally by doing `npm install \u003cgit-repo#tag\u003e`\n2. removing `package-lock.json` and doing`npm install` to generate it again.\n\n\u003e See: https://github.com/npm/cli/issues/3973 for information on why npm isn't going to fix this.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwplayer%2Fnpm-check-installed-git-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwplayer%2Fnpm-check-installed-git-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwplayer%2Fnpm-check-installed-git-tags/lists"}