Welcome! This FAQ is designed to help students quickly resolve common setup issues for Node.js, Rust, and Git. The tone is supportive — you’re doing great, and every install step is progress.
- Cause: Node.js is not installed or not in your PATH.
- Fix:
- On macOS/Linux:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -thensudo apt-get install -y nodejs(Ubuntu/Debian) or usebrew install node(macOS). - On Windows: install from https://nodejs.org and restart your terminal.
- Verify with:
node --versionandnpm --version.
- On macOS/Linux:
- Cause: run command in wrong directory or with project already using different package manager.
- Fix:
cd /workspaces/Web3-Student-Labfirst.- Use
npm installifpackage-lock.jsonexists,pnpm installif usingpnpm-lock.yaml, oryarn installforyarn.lock. - Remove conflicting lock files only if you intentionally switch managers.
- Cause: project requires modern Node version (>=18).
- Fix:
- Install
nvm(macOS/Linux) ornvm-windows. nvm install 20, thennvm use 20.- Re-run install commands.
- Install
- Cause: Rust is not installed or path not loaded.
- Fix:
- Run:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. - Restart terminal or
source $HOME/.cargo/env. - Verify:
rustc --version,cargo --version.
- Run:
- Cause: stale dependencies or incompatible toolchain.
- Fix:
- Update Rust toolchain:
rustup update. - Use project toolchain if
rust-toolchain.tomlexists:rustup override set stable(or specific version). - Run:
cargo clean && cargo build.
- Update Rust toolchain:
- Cause: missing wasm32 target or Soroban CLI.
- Fix:
rustup target add wasm32-unknown-unknown.- Install Soroban tools as in repo docs (if present):
cargo install --locked soroban-cli.
- Cause: Git not installed.
- Fix:
- Ubuntu/Debian:
sudo apt-get update && sudo apt-get install git. - macOS:
brew install gitor install Xcode command line tools. - Windows: install from https://git-scm.com and restart terminal.
- Ubuntu/Debian:
- Cause: missing CA certs or corporate proxy.
- Fix:
- Ensure
ca-certificatespackage is installed (sudo apt-get install ca-certificates,sudo update-ca-certificates). - For proxy, configure:
git config --global http.proxy http://proxy.example.com:8080git config --global https.proxy http://proxy.example.com:8080
- Ensure
- Cause: concurrent git process or no write permission.
- Fix:
- Check no other git commands are running in project.
git gc --prune=nowthen retry.- Ensure you are working in a forked copy and have proper remote URL (SSH/HTTPS).
- Check your terminal / shell is restarted after installs.
- Confirm your working directory:
pwdshould be/workspaces/Web3-Student-Lab. - Validate versions:
node --versionnpm --versionorpnpm --versionrustc --versioncargo --versiongit --version
- If issue persists, copy full command and error text, open a GitHub issue with screenshot and logs, and others can help quickly.
- Use
nvmfor Node versions andrustupfor Rust toolchains to avoid wide system changes. - Keep a clean local branch for PR work:
git checkout -b feature/faqand push to your fork. - You got this — each setup issue is a learning step that makes you a stronger open-source contributor.