---
type: snippet
tags: ['node', 'npm', 'package']
status: release
ctime: 2022-04-09
mtime: 2024-03-22
---

```json
// package.json 파일에 로컬 경로를 지정하는 방법. 파일 시스템에 있는 패키지 디렉터리를 사용할 수 있음.

{
  "dependencies": {
    "bar": "file:../foo/bar"
  }
}
```

---

- [package.json | npm Docs](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#local-paths)