Installing node and npm as attendee of AI Agent Dev School #1518
Unanswered
Johnwbusch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my first time to use Terminal in about 30 years. Can someone please watch this Loom video of me doing it and let me know if I did it correctly?
Please confirm if you can take the time and have the patience to watch the short Loom video, read the text below and/or ask me to reply with more data from Terminal.
https://www.loom.com/share/f7f38c3981534f97bd5187d1dc488ad1?sid=7660253a-66b2-414e-9674-e635e778efaa
I then ran these 2 commands.
johnbusch@MacBook-Pro-4 eliza % nvm install 23
Downloading and installing node v23.5.0...
Downloading https://nodejs.org/dist/v23.5.0/node-v23.5.0-darwin-arm64.tar.xz...
################################################################################# 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Now using node v23.5.0 (npm v10.9.2)
Creating default alias: default -> 23 (-> v23.5.0)
johnbusch@MacBook-Pro-4 eliza % nvm use 23
Now using node v23.5.0 (npm v10.9.2)
johnbusch@MacBook-Pro-4 eliza % ;2A
The OBS screen capture was frozen as Shaw was walking attendees thru 1) where to find and how to install pnpm and then where to find and how to install the eliza starter kit. I got resourceful and looked at Shaw's laptop screen to see what repo he was using and then dug around github and found this page https://github.com/elizaOS/eliza/blob/main/README.md
Below is the data from Terminal, so it looks like I installed pnpm correctly, right?
johnbusch@MacBook-Pro-4 eliza % ;2Anpm install -g pnpm
zsh: command not found: 2Anpm
johnbusch@MacBook-Pro-4 eliza % curl -fsSL https://get.pnpm.io/install.sh | sh -
==> Downloading pnpm binaries 9.15.1
WARN using --force I sure hope you know what you are doing
Copying pnpm CLI from /private/var/folders/vv/gvn09y5s6zv1y1k1s2k_pz3h0000gn/T/tmp.lhxBqLaBYN/pnpm to /Users/johnbusch/Library/pnpm/pnpm
Created /Users/johnbusch/.zshrc
Next configuration changes were made:
export PNPM_HOME="/Users/johnbusch/Library/pnpm"
case ":$PATH:" in
":$PNPM_HOME:") ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
To start using pnpm, run:
source /Users/johnbusch/.zshrc
johnbusch@MacBook-Pro-4 eliza %
Then here is when I ran the command to load the eliza starter kit
johnbusch@MacBook-Pro-4 eliza % git clone https://github.com/elizaos/eliza-starter.git
cd eliza-starter
cp .env.example .env
pnpm i && pnpm build && pnpm start
Cloning into 'eliza-starter'...
remote: Enumerating objects: 50, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 50 (delta 13), reused 6 (delta 6), pack-reused 23 (from 1)
Receiving objects: 100% (50/50), 158.43 KiB | 1.45 MiB/s, done.
Resolving deltas: 100% (15/15), done.
zsh: command not found: pnpm
This line "zsh: command not found: pnpm" let me know I missed something, so I ran this command
source /Users/johnbusch/.zshrc
Then I once again ran the command to load the eliza starter kit and VIOLA!!!
johnbusch@MacBook-Pro-4 eliza-starter % git clone https://github.com/elizaos/eliza-starter.git
cd eliza-starter
cp .env.example .env
pnpm i && pnpm build && pnpm start
Cloning into 'eliza-starter'...
remote: Enumerating objects: 50, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 50 (delta 13), reused 6 (delta 6), pack-reused 23 (from 1)
Receiving objects: 100% (50/50), 158.43 KiB | 1.52 MiB/s, done.
Resolving deltas: 100% (15/15), done.
Packages are cloned from the content-addressable store to the virtual store.
Content-addressable store is at: /Users/johnbusch/Library/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Downloading tiktoken@1.0.17: 10.60 MB/10.60 MB, done
Downloading espeak-ng@1.0.2: 9.19 MB/9.19 MB, done
Downloading @huggingface/transformers@3.0.1: 8.77 MB/8.77 MB, done
Downloading jieba-wasm@2.2.0: 10.91 MB/10.91 MB, done
Downloading pdfjs-dist@4.7.76: 10.21 MB/10.21 MB, done
Downloading @echogarden/espeak-ng-emscripten@0.3.0: 12.53 MB/12.53 MB, done
Downloading sql.js@1.12.0: 7.83 MB/7.83 MB, done
Downloading js-tiktoken@1.0.16: 10.24 MB/10.24 MB, done
Downloading node-llama-cpp@3.1.1: 18.16 MB/18.16 MB, done
Downloading kuromoji@0.1.2: 21.83 MB/21.83 MB, done
Downloading @echogarden/flite-wasi@0.1.1: 14.52 MB/14.52 MB, done
Downloading @img/sharp-libvips-darwin-arm64@1.0.4: 7.10 MB/7.10 MB, done
Downloading tiktoken@1.0.18: 10.61 MB/10.61 MB, done
Downloading @echogarden/espeak-ng-emscripten@0.3.3: 12.53 MB/12.53 MB, done
Downloading onnxruntime-web@1.21.0-dev.20241024-d9ca84ef96: 20.46 MB/20.46 MB, done
Downloading onnxruntime-node@1.20.0: 70.00 MB/70.00 MB, done
WARN 19 deprecated subdependencies found: @cliqz/adblocker-content@1.34.0, @cliqz/adblocker-extended-selectors@1.34.0, @cliqz/adblocker-playwright@1.34.0, @cliqz/adblocker@1.34.0, @discordjs/voice@0.17.0, are-we-there-yet@2.0.0, are-we-there-yet@3.0.1, bin-version-check@6.0.0, gauge@3.0.2, gauge@4.0.4, glob@7.2.3, har-validator@5.1.5, inflight@1.0.6, npmlog@5.0.1, npmlog@6.0.2, puppeteer@19.11.1, request@2.88.2, rimraf@3.0.2, uuid@3.4.0
Packages: +1334
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1436, reused 0, downloaded 1335, added 1334, done
node_modules/.pnpm/ffmpeg-static@5.2.0/node_modules/ffmpeg-static: Running install script...
node_modules/.pnpm/utf-8-validate@5.0.10/node_modules/utf-8-validate: Running install script...
node_modules/.pnpm/utf-8-validate@5.0.10/node_modules/utf-8-validate: Running install script, done in 1spm/esbuild@0.24.0/node_modules/esbuild: Running postinstall script, done
in 823msles/.pnpm/bufferutil@4.0.8/node_modules/bufferutil: Running install script...
node_modules/.pnpm/better-sqlite3@11.5.0/node_modules/better-sqlite3: Running install script...
node_modules/.pnpm/bufferutil@4.0.8/node_modules/bufferutil: Running install script, done in 1.3sles/.pnpm/onnxruntime-node@1.20.0/node_modules/onnxruntime-node: Running postin
stall script, done in 64ms
node_modules/.pnpm/sharp@0.33.5/node_modules/sharp: Running install script...
node_modules/.pnpm/sharp@0.33.5/node_modules/sharp: Running install script, done in 285mscript...
node_modules/.pnpm/es5-ext@0.10.64/node_modules/es5-ext: Running postinstall script, donnode_modules/.pnpm/canvas@2.11.2/node_modules/canvas: Running install script, failed in 5s (skipped as optional)llama-cpp@3.1.1_typescript@5.6.3/node_modules/node-llama-cpp: Ru
node_modules/.pnpm/better-sqlite3@11.5.0/node_modules/better-sqlite3: Running install script, done in 2.4s/protobufjs@7.4.0/node_modules/protobufjs: Running postinstall script.
node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs: Running postinstall script, done in 40ms
node_modules/.pnpm/node-llama-cpp@3.1.1_typescript@5.6.3/node_modules/node-llama-cpp: Running postinstall script, done in 945msode_modules/@discordjs/opus: Running install scri
pt...
node_modules/.pnpm/bigint-buffer@1.1.5/node_modules/bigint-buffer: Running install scripnode_modules/.pnpm/@discordjs+opus@https+++codeload.github.com+discordjs+opus+tar.gz+31da49d8d2cc6c5a2ab1bfd332033ff7d5f9fb02/node_modules/@discordjs/opus: Running install script, done in 24.1s
node_modules/.pnpm/puppeteer@19.11.1_bufferutil@4.0.8_typescript@5.6.3_utf-8-validate@5.node_modules/.pnpm/puppeteer@19.11.1_bufferutil@4.0.8_typescript@5.6.3_utf-8-validate@5.0.10/node_modules/puppeteer: Running postinstall script, done in 13.4s
node_modules/.pnpm/youtube-dl-exec@3.0.10/node_modules/youtube-dl-exec: Running preinstanode_modules/.pnpm/youtube-dl-exec@3.0.10/node_modules/youtube-dl-exec: Running preinstall script, done in 102ms
node_modules/.pnpm/youtube-dl-exec@3.0.10/node_modules/youtube-dl-exec: Running postinstnode_modules/.pnpm/youtube-dl-exec@3.0.10/node_modules/youtube-dl-exec: Running postinstall script, done in 1.8s
node_modules/.pnpm/@ai16z+plugin-node@0.1.4-alpha.3_@google-cloud+vertexai@1.9.0_@langchain+core@0.3.26_openai@4_hwf72ysvohpuphdv3yixzknu2u/node_modules/@ai16z/plugin-node: Runnode_modules/.pnpm/@ai16z+plugin-node@0.1.4-alpha.3_@google-cloud+vertexai@1.9.0_@langchain+core@0.3.26_openai@4_hwf72ysvohpuphdv3yixzknu2u/node_modules/@ai16z/plugin-node: Running postinstall script, done in 41.2s
dependencies:
devDependencies:
WARN Issues with peer dependencies found
.
├─┬ @ai16z/adapter-postgres 0.1.4-alpha.3
│ └─┬ @ai16z/eliza 0.1.4-alpha.3
│ └─┬ @ai16z/adapter-sqlite 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/eliza 0.1.4-alpha.3
│ ├─┬ @ai16z/adapter-sqlite 0.1.4-alpha.3
│ │ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/adapter-sqljs 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/eliza 0.1.4-alpha.3
│ └─┬ @ai16z/adapter-supabase 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-auto 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ ├─┬ @ai16z/plugin-solana 0.1.4-alpha.3
│ │ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ │ └─┬ @ai16z/plugin-trustdb 0.1.4-alpha.3
│ │ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/plugin-image-generation 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-direct 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-discord 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/plugin-node 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-twitter 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/plugin-bootstrap 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
└─┬ @ai16z/plugin-starknet 0.1.4-alpha.3
└── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
Done in 2m 11.9s
No input files, try "tsup " instead
ELIFECYCLE Command failed with exit code 1.
johnbusch@MacBook-Pro-4 eliza-starter %
Then I ran the command to install sharp
johnbusch@MacBook-Pro-4 eliza-starter % pnpm install --include=optional sharp
WARN 19 deprecated subdependencies found: @cliqz/adblocker-content@1.34.0, @cliqz/adblocker-extended-selectors@1.34.0, @cliqz/adblocker-playwright@1.34.0, @cliqz/adblocker@1.34.0, @discordjs/voice@0.17.0, are-we-there-yet@2.0.0, are-we-there-yet@3.0.1, bin-version-check@6.0.0, gauge@3.0.2, gauge@4.0.4, glob@7.2.3, har-validator@5.1.5, inflight@1.0.6, npmlog@5.0.1, npmlog@6.0.2, puppeteer@19.11.1, request@2.88.2, rimraf@3.0.2, uuid@3.4.0
Packages: +1
+
Progress: resolved 1437, reused 1335, downloaded 1, added 1, done
dependencies:
WARN Issues with peer dependencies found
.
├─┬ @ai16z/adapter-postgres 0.1.4-alpha.3
│ └─┬ @ai16z/eliza 0.1.4-alpha.3
│ └─┬ @ai16z/adapter-sqlite 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/eliza 0.1.4-alpha.3
│ ├─┬ @ai16z/adapter-sqlite 0.1.4-alpha.3
│ │ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/adapter-sqljs 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/eliza 0.1.4-alpha.3
│ └─┬ @ai16z/adapter-supabase 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-auto 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ ├─┬ @ai16z/plugin-image-generation 0.1.4-alpha.3
│ │ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/plugin-solana 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/plugin-trustdb 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-direct 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-discord 0.1.4-alpha.3
│ ├── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
│ └─┬ @ai16z/plugin-node 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/client-twitter 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
├─┬ @ai16z/plugin-bootstrap 0.1.4-alpha.3
│ └── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
└─┬ @ai16z/plugin-starknet 0.1.4-alpha.3
└── ✕ unmet peer whatwg-url@7.1.0: found 14.1.0
Done in 3.1s
johnbusch@MacBook-Pro-4 eliza-starter %
Then I paused the video to see the command Shaw typed in and I ran that command, which was the pnpm command he ran before.
curl -fsSL https://get.pnpm.io/install.sh | sh -
==> Downloading pnpm binaries 9.15.1
WARN using --force I sure hope you know what you are doing
Copying pnpm CLI from /private/var/folders/vv/gvn09y5s6zv1y1k1s2k_pz3h0000gn/T/tmp.l5xdRnNjhh/pnpm to /Users/johnbusch/Library/pnpm/pnpm
No changes to the environment were made. Everything is already up to date.
johnbusch@MacBook-Pro-4 eliza-starter %
Beta Was this translation helpful? Give feedback.
All reactions