ceramicnetwork / ceramicnetwork/docs-docusaurus

BUG: When running npx @ceramicnetwork/cli daemon, there is an error Please migrate your code to use AWS SDK for JavaScript (v3).

オープン
#97 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug help wanted
主要言語
TypeScript
スター
23
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
When I run `npx @ceramicnetwork/cli daemon ` or `pnpm dlx @ceramicnetwork/cli daemon` during the quickstart instalation, it returns the following error on both commands:

(node:58056) NOTE: The AWS SDK for JavaScript (v2) will enter maintenance mode
on September 8, 2024 and reach end-of-support on September 8, 2025.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check blog post at https://a.co/cUPnyil
(Use `node --trace-warnings ...` to show where the warning was created)
node:events:492
throw er; // Unhandled 'error' event
^

Error: spawn /usr/local/bin/ceramic-one ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn /usr/local/bin/ceramic-one',
path: '/usr/local/bin/ceramic-one',
spawnargs: [
'daemon',
'--bind-address',
'0.0.0.0:5101',
'--store-dir',
'~/.ceramic-one',
'--p2p-key-dir',
'~/.ceramic-one',
'--network',
'testnet-clay',
'--local-network-id',
'0'
]
}

Node.js v20.10.0

**To Reproduce**
Steps to reproduce the behavior:
1. Go to [the documentation](https://developers.ceramic.network/docs/composedb/set-up-your-environment)
2. Run `npx @ceramicnetwork/cli daemon` or `pnpm dlx @ceramicnetwork/cli daemon`
3. Scroll down in the terminal to see the end result
4. See error

**Expected behavior**
I expected for the result to be something like this:IMPORTANT: Ceramic API running on 0.0.0.0:7007

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Ceramic versions**

**Machine, OS, browser information (please complete the following information):**
MacBook Pro, Apple M2, macOS Sonoma 14.4.1

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

クイックスタートドキュメントのエントリーポイントから始め、報告された環境で `npx @ceramicnetwork/cli daemon` または `pnpm dlx @ceramicnetwork/cli daemon` を再現します。daemon コマンドが `/usr/local/bin/ceramic-one` の起動を試みる理由を追跡し、AWS 警告と ENOENT 失敗を区別して、コマンドがポート 7007 で想定される API を起動することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js
領域
cli, documentation
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。