Skip to content

(4) Check Environment

Before configuring command-line tools such as Claude Code or Codex, confirm that Node.js is correctly installed on your machine (these CLIs depend on Node.js and npm).

Users who only use graphical clients (such as Cherry Studio) or write their own code can skip this section and go straight to Configure Clients.

Check your Node.js environment

In a terminal on Windows, macOS or Linux, run:

bash
npm list -g --depth=0
  • If the command runs normally (even if no global packages are listed), Node.js and npm are available.
  • If you see "command not found", Node.js isn't installed yet, or it wasn't added to your system PATH correctly after installation.

Install Node.js

Go to the Node.js website and download the LTS version to install. After installation, reopen your terminal and run the command above again to confirm.

Tip

We recommend installing Node.js 18 or later. If you still see "command not found" after installing, it's usually because the terminal wasn't restarted or the PATH didn't take effect — restart your terminal / computer and try again.

Next step

Once your environment is ready, continue to Configure Clients to connect Claude Code / Codex to Tianshu.