> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-ko/sdk7/libraries/manage-dependencies.md).

# 종속성 관리

씬에 라이브러리를 추가하는 방법

씬에 재사용 가능한 라이브러리에 이미 구현된 기능이 필요한 경우가 많습니다. 외부 라이브러리를 사용하면 작업을 훨씬 수월하게 할 수 있습니다.

Decentraland 프로젝트에 외부 라이브러리를 가져온 다음, 해당 라이브러리에 설명된 시스템, 컴포넌트 또는 함수를 참조할 수 있습니다.

다음 [예제 페이지](https://studios.decentraland.org/resources?sdk_version=SDK7\&resource_type=Library) 를 확인해 보세요. Decentraland 재단과 커뮤니티 회원이 만든 여러 라이브러리에서 흔히 발생하는 문제를 해결하는 방법을 찾을 수 있습니다.

## CLI 사용

### 설치

프로젝트 폴더에 라이브러리를 설치하려면 프로젝트의 루트 경로에서 다음 명령어를 실행하세요. `npm i` 와 라이브러리 이름을 함께 입력합니다. 예를 들면 다음과 같습니다.

`npm i @dcl-sdk/utils`

> **📔 참고**: 라이브러리의 종속 항목을 설치하려면 설치 후 다음 명령어를 실행해야 할 수 있습니다. `npm run start` 또는 `npm run build` 를 실행하세요.

### 업데이트

package.json `파일에서 라이브러리 버전이` 로 지정되어 있다면 `@latest`다음 명령어를 실행하세요. `npm i` 그러면 모든 라이브러리가 각각의 최신 버전으로 업데이트됩니다.

package.json `에서` 특정 버전 번호를 참조하는 경우, 라이브러리를 설치하는 명령어 끝에 `@` 와 버전 번호를 추가해 업데이트할 수 있습니다. 예를 들면 다음과 같습니다.

`npm i @dcl-sdk/utils@1.7.5`

### 제거

씬의 종속 항목에서 라이브러리를 삭제하려면 다음 명령어를 실행하세요. `npm rm` 와 라이브러리 이름을 함께 입력합니다. 예를 들면 다음과 같습니다.

`npm rm @dcl-sdk/utils`

사용하지 않는 라이브러리는 제거하는 것이 좋습니다. 사용하지 않는 라이브러리도 씬의 공간을 차지해 플레이어가 씬을 다운로드하고 실행할 때의 경험에 영향을 줍니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-ko/sdk7/libraries/manage-dependencies.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
