Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
APiligrim opened this issue Jul 22, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@APiligrim
Copy link

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

@APiligrim APiligrim added bug Something isn't working help wanted Extra attention is needed labels Jul 22, 2024
@APiligrim
Copy link
Author

Also when running .wheel, I get this error:

`
x Installing dependencies for @composedb/cli

ComposeDB cli now available.

You can run composedb with

    ./composedb

To list available models for usage, use

    ./composedb model:list --network=testnet-clay --table

To run the graphiql server use

    ./composedb graphql:server --graphiql --port 5005 <path to compiled composite>

For more information on composedb and commands to run, see https://composedb.js.org/docs/0.4.x/first-composite

You can also take a look at https://github.com/ceramicstudio/ComposeDbExampleApp for more ideas on using ComposeDB.

Setting up application template from https://github.com/ceramicstudio/ComposeDbExampleApp
x Installing dependenciesFailed to install
err: npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
err: npm WARN deprecated [email protected]: Switch to @scure/base for audited version of the lib & updates
err: npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
err: npm WARN deprecated [email protected]: 'go-ipfs' name has been deprecated. Please switch your dependency to 'kubo' - https://www.npmjs.com/package/kubo
err: npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
err: npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see ipfs/js-ipfs#4336 for details
err: npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see ipfs/js-ipfs#4336 for details
err: npm WARN deprecated [email protected]: js-IPFS has been deprecated in favour of Helia - please see ipfs/js-ipfs#4336 for details
err: npm ERR! code 1
err: npm ERR! path /Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/leveldown
err: npm ERR! command failed
err: npm ERR! command sh -c node-gyp-build
err: npm ERR! gyp info it worked if it ends with ok
err: npm ERR! gyp info using [email protected]
err: npm ERR! gyp info using [email protected] | darwin | arm64
err: npm ERR! gyp info find Python using Python version 3.12.1 found at "/Library/Frameworks/Python.framework/Versions/3.12/bin/python3"
err: npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.12/bin/python3
err: npm ERR! gyp info spawn args [
err: npm ERR! gyp info spawn args '/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/node-gyp/gyp/gyp_main.py',
err: npm ERR! gyp info spawn args 'binding.gyp',
err: npm ERR! gyp info spawn args '-f',
err: npm ERR! gyp info spawn args 'make',
err: npm ERR! gyp info spawn args '-I',
err: npm ERR! gyp info spawn args '/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/leveldown/build/config.gypi',
err: npm ERR! gyp info spawn args '-I',
err: npm ERR! gyp info spawn args '/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/node-gyp/addon.gypi',
err: npm ERR! gyp info spawn args '-I',
err: npm ERR! gyp info spawn args '/Users/anastasiyauraleva/Library/Caches/node-gyp/20.10.0/include/node/common.gypi',
err: npm ERR! gyp info spawn args '-Dlibrary=shared_library',
err: npm ERR! gyp info spawn args '-Dvisibility=default',
err: npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/anastasiyauraleva/Library/Caches/node-gyp/20.10.0',
err: npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/node-gyp',
err: npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/anastasiyauraleva/Library/Caches/node-gyp/20.10.0/<(target_arch)/node.lib',
err: npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/leveldown',
err: npm ERR! gyp info spawn args '-Dnode_engine=v8',
err: npm ERR! gyp info spawn args '--depth=.',
err: npm ERR! gyp info spawn args '--no-parallel',
err: npm ERR! gyp info spawn args '--generator-output',
err: npm ERR! gyp info spawn args 'build',
err: npm ERR! gyp info spawn args '-Goutput_dir=.'
err: npm ERR! gyp info spawn args ]
err: npm ERR! Traceback (most recent call last):
err: npm ERR! File "/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/node-gyp/gyp/gyp_main.py", line 42, in
err: npm ERR! import gyp # noqa: E402
err: npm ERR! ^^^^^^^^^^
err: npm ERR! File "/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 9, in
err: npm ERR! import gyp.input
err: npm ERR! File "/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in
err: npm ERR! from distutils.version import StrictVersion
err: npm ERR! ModuleNotFoundError: No module named 'distutils'
err: npm ERR! gyp ERR! configure error
err: npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1
err: npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/node-gyp/lib/configure.js:259:16)
err: npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28)
err: npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
err: npm ERR! gyp ERR! System Darwin 23.4.0
err: npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/.bin/node-gyp" "rebuild"
err: npm ERR! gyp ERR! cwd /Users/anastasiyauraleva/ceramic-app/ceramic-app-app/node_modules/leveldown
err: npm ERR! gyp ERR! node -v v20.10.0
err: npm ERR! gyp ERR! node-gyp -v v8.4.1
err: npm ERR! gyp ERR! not ok
err:
err: npm ERR! A complete log of this run can be found in: /Users/anastasiyauraleva/.npm/_logs/2024-07-23T05_37_52_286Z-debug-0.log

  • Installing dependenciesError: Failed to install, please see output`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant