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

Install fails #1480

Open
eskp opened this issue Dec 26, 2024 · 7 comments
Open

Install fails #1480

eskp opened this issue Dec 26, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@eskp
Copy link

eskp commented Dec 26, 2024

Describe the bug

The install command fails with the following error

│ clang++: error: no such file or directory: 'Services/Agent/eliza/node_modules/@discordjs/opus/node_modules/node-addon-api'
│ make: *** [Release/obj.target/opus/src/node-opus.o] Error 1
│ gyp ERR! build error 
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.<anonymous> (/Users/skp/Dev/TechOps Services/Agent/eliza/node_modules/node-gyp/lib/build.js:216:23)
│ gyp ERR! System Darwin 24.1.0
│ gyp ERR! command "/Users/skp/.nvm/versions/node/v20.18.1/bin/node" "/Users/skp/Dev/TechOps Services/Agent/eliza/node_modules/node-gyp/bin/node-gyp.js" "…
│ gyp ERR! cwd /Users/skp/Dev/TechOps Services/Agent/eliza/node_modules/@discordjs/opus
│ gyp ERR! node -v v20.18.1
│ gyp ERR! node-gyp -v v10.3.1
│ gyp ERR! not ok 
│ node-pre-gyp ERR! build error 
│ node-pre-gyp ERR! stack Error: Failed to execute '/Users/skp/.nvm/versions/node/v20.18.1/bin/node /Users/skp/Dev/TechOps Services/Agent/eliza/node_modul…
│ node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/skp/Dev/TechOps Services/Agent/eliza/node_modules/@discordjs/node-pre-gyp/lib/util/compi…
│ node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
│ node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1104:16)
│ node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
│ node-pre-gyp ERR! System Darwin 24.1.0
│ node-pre-gyp ERR! command "/Users/skp/.nvm/versions/node/v20.18.1/bin/node" "/Users/skp/Dev/TechOps Services/Agent/eliza/node_modules/@discordjs/opus/no…
│ node-pre-gyp ERR! cwd /Users/skp/Dev/TechOps Services/Agent/eliza/node_modules/@discordjs/opus
│ node-pre-gyp ERR! node -v v20.18.1
│ node-pre-gyp ERR! node-pre-gyp -v v0.4.5
│ node-pre-gyp ERR! not ok 

To Reproduce

Cloned the repo

Follow the instructions by running pnpm i && pnpm build && pnpm start

Tried checking out the stable release and from main - git checkout $(git describe --tags --abbrev=0)

Tried with node v20 and v23

Tried install node-gyp and discord/opus packages manually

Expected behavior

The install succeeds and proceeds to build step

Screenshots

Additional context

@eskp eskp added the bug Something isn't working label Dec 26, 2024
@doxometrist
Copy link

pnpm i 
Scope: all 50 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +4692
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ERR_PNPM_READ_FROM_STORE  Unexpected end of JSON input
Progress: resolved 0, reused 1485, downloaded 0, added 0

having the same issue at a varying number of package - 1472, 1485, etc. both on main and develop
node v23.3.0

suspected upstream break issue

@doxometrist
Copy link

doxometrist commented Dec 26, 2024

trying installing having deleted the pnpm-lock.yaml

on develop branch

might be a bug in the locked-to version and since it has been fixed.

update:


packages/client-lens
└─┬ @lens-protocol/client 2.2.0
  └─┬ @lens-protocol/gated-content 0.5.1
    └─┬ @lit-protocol/node-client 2.1.62
      ├─┬ @walletconnect/ethereum-provider 2.17.3
      │ └─┬ @walletconnect/modal 2.7.0
      │   ├─┬ @walletconnect/modal-core 2.7.0
      │   │ └─┬ valtio 1.11.2
      │   │   ├── ✕ missing peer react@>=16.8
      │   │   └─┬ use-sync-external-store 1.2.0
      │   │     └── ✕ missing peer react@"^16.8.0 || ^17.0.0 || ^18.0.0"
      │   └─┬ @walletconnect/modal-ui 2.7.0
      │     └─┬ @walletconnect/modal-core 2.7.0
      │       └── ✕ missing peer react@>=16.8
      └─┬ @lit-protocol/auth-browser 2.1.62
        └─┬ @walletconnect/ethereum-provider 2.17.3
          └── ✕ missing peer react@>=16.8
Peer dependencies that should be installed:
  react@">=16.8.0 <17.0.0 || >=17.0.0 <18.0.0 || >=18.0.0 <19.0.0"  

packages/core
└─┬ @langchain/core 0.3.26
  └─┬ zod-to-json-schema 3.24.1
    └── ✕ unmet peer zod@^3.24.1: found 3.23.8

packages/plugin-0g
└─┬ @0glabs/0g-ts-sdk 0.2.1
  └── ✕ unmet peer [email protected]: found 6.13.4

packages/plugin-goat
├─┬ @goat-sdk/wallet-viem 0.1.3
│ └── ✕ unmet peer @goat-sdk/[email protected]: found 0.3.8
└─┬ @goat-sdk/plugin-coingecko 0.1.4
  ├── ✕ unmet peer @goat-sdk/[email protected]: found 0.3.8
  └── ✕ unmet peer [email protected]: found 2.21.53

Packages: +4674
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ERR_PNPM_READ_FROM_STORE  Unexpected end of JSON input
Progress: resolved 4090, reused 1221, downloaded 0, added 0

@doxometrist
Copy link

pnpm prune also fails

@doxometrist
Copy link

 pnpm i --filter core
Lockfile is up to date, resolution step is skipped
.                                        |    +4692 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ERR_PNPM_READ_FROM_STORE  Unexpected end of JSON input
Progress: resolved 0, reused 1272, downloaded 0, added 0

this also fails

@doxometrist
Copy link

sudo pnpm install fixes on my wsl2 machine

@odilitime
Copy link
Collaborator

https://github.com/HowieDuhzit/Eliza-Installer

is probably a lot of help for people having this issue

@briancullinan2
Copy link

Please always identify your OS and hardware in these filings. Chips will be coming out that have many different functions. i.e. CUDA versus Apple arch64.

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

No branches or pull requests

4 participants