Package Alias: Multiple versions of npm package When you are working on a module/plugin and want to make sure that they work with all versions, you can work with a custom alias. Table of Contents Custom Alias Specific Version Custom Alias npm i <your-alias>@npm:<package-name> Specific Version You can also install a specific version of the package by appending the command with @<package-version>. npm i astro-v1@npm:astro@1 npm i astro@npm:astro Import usage: // astro-v1 import { defineConfig } from "astro-v1/config"; // astro import { defineConfig } from "astro/config"; tags: javascript (4) npm (1) package (1) dependency (1) alias (1) project (1) UpdatesSubscribe to my personal newsletter.Email addressSubscribeJoin others! 100% Free. No spam. Privacy Policy Related snippets Intl API: Number Formatting Format numbers like 5.2K or 1.7M using the JavaScript Internationalization API hooks: useRenderCount Debug better with this utility hook