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).

Aperta
#97 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug help wanted
Lingua principale
TypeScript
Stelle
23
Fork
11
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with the quickstart documentation entry point and reproduce `npx @ceramicnetwork/cli daemon` or `pnpm dlx @ceramicnetwork/cli daemon` on the reported environment. Trace why the daemon command attempts to spawn `/usr/local/bin/ceramic-one`, distinguish the AWS warning from the ENOENT failure, and verify that the command starts the expected API on port 7007.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
node.js
Ambito
cli, documentation
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.