> For the complete documentation index, see [llms.txt](https://docs.weirdhost.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.weirdhost.xyz/bots/nodejs/nodepends.md).

# 디펜던시 설치

{% embed url="<https://phsun102.tistory.com/28>" %}

Nodejs 서버는 패널 콘솔을 이용한 npm install 같은 커맨드의 실행이 안됩니다.

```json
{
  "name": "Very cool discord chat bot",
  "version": "1.0.0",
  "description": "A bot",
  "main": "index.js",
  "scripts": {
    "test": "test"
  },
  "keywords": [],
  "author": "someone",
  "license": "ISC",
  "dependencies": {
    "discord.js": "^14.8.0",
    "dotenv": "^16.0.3",
    "openai": "^3.2.1"
  }
}

# Package.json의 예시
```

**package.json** 이라는 이름의 파일로 서버가 필요한 디펜던시를 적어두면 서버 실행시 설치가 자동으로 진행됩니다.

*디펜던시 관련 문제사항 공식적인 지원이 없습니다, 일부 기능 (예시: selenium, chromedriver)는  작동이 안될수도 있습니다*.

디펜던시 설치 공간은 서버 저장공간과 달라요. 100메가 초과시 OS 오류가 표시됩니다.
