---
type: snippet
tags: ['npm']
status: release
ctime: 2023-02-27
mtime: 2024-03-22
---

npm을 사용하여 패키지의 여러 버전을 설치하려면 npm 설치 명령 뒤에 패키지 이름과 설치하려는 버전 번호를 사용하면 됩니다. 이 명령을 다른 버전 번호로 반복하여 여러 버전의 패키지를 설치할 수 있습니다.

```shell
yarn add react-tooltip-5@npm:react-tooltip@5.8.3
```

```json
{
  "react-tooltip-5": "npm:react-tooltip@5.8.3"
}
```

---

- [how to install multiple versions of package using npm - Stack Overflow](https://stackoverflow.com/questions/26414587/how-to-install-multiple-versions-of-package-using-npm)
- [How to install multiple versions of a npm package at the same time/project - DEV Community](https://dev.to/3imed_jaberi/how-to-install-multiple-versions-of-a-npm-package-at-the-same-time-project-2a29)