# Bunjs ile Node gerektiren paketleri / modulleri (pino-pretty, pm2) indirmek ve k

![](https://i.imgur.com/gs1ZUya.png)

## Neden Olur?

* **`pino-pretty`** çalıştırmak için Node.js gerektirir.
* Bu nedenle **`node`** uygulamasını arar.

## **Nasıl Çözülür?**

<details>

<summary>lk olarak, **`which`** komutunu kullanarak **`pino-pretty`**'nin kurulum yolunu bulun.</summary>

```bash
which pino-pretty
```

</details>

<details>

<summary>Daha sonra, **`pino-pretty`**'yi tam yolunu belirterek **`bun`** ile çalıştırabilirsiniz.</summary>

\- \_Bu gerçekten zahmetli olabilir\_ 😅

</details>

<details>

<summary>Diyelim ki yol **`$HOME/.bun/bin/pino-pretty`** ise</summary>

```shell
bun $HOME/.bun/bin/pino-pretty
bun $(which pino-pretty)
```

</details>

<details>

<summary>İşte bir TypeScript dosyasının çıktısını **`pino-pretty`** üzerinden **`bun`** kullanarak pipeline yapmanın bir örneği</summary>

```shell
bun src/index.ts | bun $(which pino-pretty)
# bun src/index.ts | bun $HOME/.bun/bin/pino-pretty
```

</details>

Verilen örnekte, **`bun`** kullanarak bir TypeScript dosyasını çalıştırıyor ve ardından çıktıyı yine **`bun`** ile çalıştırılan **`pino-pretty`**'ye boru hattı yapıyorsunuz (**`|`**). Bu, **`bun`**'ın bu senaryoda **`node`** için düşük maliyetli bir alternatif olarak çalışabileceği varsayımı üzerine kuruludur. Ancak, uyumluluk sorunları nedeniyle bu yaklaşımın tüm Nodejs paketleri veya betikleri için uygulanabilir olmayabileceği konusunda dikkatli olun.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yemreak.com/arsiv/programming/bunjs-ile-node-gerektiren-paketleri-modulleri-pino-pretty-pm2-indirmek-ve-kullanmak.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
