Where commands run

Open the command window on your computer

This page never runs commands for you. Open the matching app, paste one copied command, then press Enter.

Open Terminal on macOS

  1. Press Command and Space together.
  2. Type Terminal.
  3. Press Enter to open it, then paste the command you copied.

Open PowerShell on Windows

  1. Press the Windows key.
  2. Type PowerShell.
  3. Open Windows PowerShell, then paste the command you copied.
Run one command at a time. Wait for it to finish before copying the next one.
Back to the ecosystem

Prepare your computer first

One Node.js LTS installation supplies Node.js, npm, and npx for the guides that follow. Use the path for your computer, then confirm success with three real versions.

Estimated time
10 minutes
What success looks like
The node, npm, and npx version commands all return a version.
Before you start
  • A Windows or macOS computer
  • Permission to download and install an app
  • Ability to approve the operating system's install prompt
Installation boundary

This guide installs only a supported Node.js LTS. Enter a password only in your computer's own permission prompt and never send it to an AI.

Install one thing and receive all three tools

Node.js is the runtime, npm installs packages, and npx runs installers directly. A supported Node.js LTS installation supplies npm and npx too; they are not separate downloads.

You do not need to learn programming here. Success is simply three visible version numbers.

You are done whenYou know that Node.js LTS is the only separate installation.

If it did not workIf another guide asks you to download npm or npx separately, stop and return to this complete path.

Easiest path: let AI check and fill the gap

If your AI can run commands on this computer, send it the request below. It checks first and does not reinstall a working environment.

Ask AI to prepare the computer
Prepare the computer environment required by the Yeelight AI guides. Check Node.js, npm, and npx first, and do not reinstall anything when all three work. If something is missing, install the current Node.js LTS for this operating system using only the official Node.js source or the operating system's package tool; do not add unrelated developer tools. After installation, reopen the command window, run node --version, npm --version, and npx --version separately, and report the real output. If I need to click an installer or approve a permission prompt, pause and tell me exactly what to select. Do not request an account, password, or token, and do not permanently change the npm registry.
You

Prepare the computer environment required by the Yeelight AI guides. Check Node.js, npm, and npx first, and do not reinstall anything when all three work. If something is missing, install the current Node.js LTS for this operating system using only the official Node.js source or the operating system's package tool; do not add unrelated developer tools. After installation, reopen the command window, run node --version, npm --version, and npx --version separately, and report the real output. If I need to click an installer or approve a permission prompt, pause and tell me exactly what to select. Do not request an account, password, or token, and do not permanently change the npm registry.

This prepares a public runtime and never needs access to a Yeelight account or home. Sanitized interactive demo. It does not read your home or control a device.

You are done whenThe AI reports three actual versions instead of only saying that installation finished.

If it did not workWhen the AI cannot run local commands, continue with the manual operating-system path.

Install it yourself using one system path

For the clearest path, open the official Node.js download page, choose LTS, and use the system installer: .pkg on macOS or .msi on Windows. The question-mark button on every command block shows where to run a command.

The official installer is the beginner default. Copy a command below only when you already use Homebrew or have confirmed that WinGet works.

macOS: only when Homebrew already exists
shell
brew --version
brew install node@24 && brew link --force node@24

Run the second line only when the first shows a Homebrew version. If an existing link conflicts, do not add --overwrite; inspect the current Node.js or use the official .pkg above.

Windows: check WinGet, then install LTS
powershell
winget --version
winget install --id OpenJS.NodeJS.LTS --exact

Run the second line only when the first shows a version. If winget is missing, use the official Node.js .msi above.

Download only from Node.js, Homebrew, Microsoft, or the clearly marked third-party mirror. Never disable certificate checks.

You are done whenThe system installer or package manager finishes without asking for a separate npm or npx download.

If it did not workIf you are unsure about architecture: an Apple-chip Mac uses ARM64, an Intel Mac uses x64, and Windows shows x64 or ARM64 under Settings > System > About. The Node.js download page's default recommendation is also a safe choice.

Reopen the command window and verify one line at a time

Close the old Terminal or PowerShell window after installation and open a new one so the new PATH is active. Copy only one command at a time.

1. Check Node.js
shell
node --version
Execution preview

node --version

    Interactive demo only. It does not run a command or connect to a device.

    2. Check npm
    shell
    npm --version
    Execution preview

    npm --version

      Interactive demo only. It does not run a command or connect to a device.

      3. Check npx
      shell
      npx --version
      Execution preview

      npx --version

        Interactive demo only. It does not run a command or connect to a device.

        You are done whenAll three commands return a version. The numbers do not need to match the examples, and npm or npx does not need the same version number as Node.js.

        If it did not workClose the old command window and retry in a new one first. If it still fails, inspect where.exe node on Windows or command -v node on macOS instead of installing several Node.js copies.

        Verify your computer environment

        Confirm the three versions first. If something fails, send the matching request below to your AI for diagnosis.

        01

        Confirm the three versions

        Run node --version, npm --version, and npx --version only. Report the real result of each command and do not install or upgrade anything.

        Verification resultThree versions or the exact command that failed.
        02

        Install only what is missing

        Check this computer first. Install the current Node.js LTS only if Node.js, npm, or npx is missing, then verify all three version commands.

        Verification resultNo duplicate installation and three real versions at the end.
        03

        Find the real command locations

        Find the actual locations of Node.js, npm, and npx on this computer. Tell me whether there is a duplicate installation or PATH conflict before changing or deleting anything.

        Verification resultCommand locations, duplicate status, and a safe next step.
        More environment checks
        04

        Check WinGet on Windows

        Check whether this Windows computer has WinGet. If it does not, show me the official Node.js LTS MSI path without permanently weakening PowerShell security.

        Verification resultWinGet availability and an official installer fallback.
        05

        Confirm computer architecture

        Check whether this computer is Apple Silicon, Intel, Windows x64, or Windows ARM64, then tell me which Node.js LTS installer matches it.

        Verification resultThe installer type that matches this computer.
        06

        Diagnose a download or certificate error

        The Node.js download or installation failed. Check the network, proxy, system time, and certificate message. Prefer an official source or a trusted mainland-China mirror, and never disable TLS or certificate verification.

        Verification resultA recovery path that keeps certificate checks enabled.

        Troubleshooting

        Do npm and npx arrive with Node.js?

        Yes. A supported Node.js LTS installation includes npm, and modern npx is the command runner supplied by npm. Neither needs a separate download.

        All three version commands already work. Should I reinstall?

        No. Finish this guide when all three return a version; reinstalling can create an unnecessary PATH conflict.

        What should I try first when node, npm, or npx is still not found?

        Close every old Terminal or PowerShell window and open a new one. Installer PATH changes normally become visible only in a new window.

        What if Windows has no winget command?

        Do not stop here. Download the LTS Windows Installer (.msi) from the official Node.js resource above, or update Microsoft App Installer from the Store and try winget again.

        Why does Windows find several Node.js locations?

        Run where.exe node to list them and do not reinstall again. Keep one intentional version and ask someone familiar with system settings to remove an old PATH entry; this guide never deletes a version automatically.

        PowerShell says npm.ps1 is blocked by execution policy. What now?

        Try npm.cmd --version first. If it returns a version, npm is installed and Command Prompt can run the later commands too. Do not permanently set the whole system to Unrestricted for one command.

        Must I install Homebrew on macOS?

        No. The official macOS Installer (.pkg) is the clearest beginner path. Homebrew is only an optional route for people who already use it.

        What if macOS still cannot find the command after installation?

        Quit Terminal completely, reopen it, and run command -v node. With no result, rerun the official .pkg using the default location instead of installing through several package managers.

        Which architecture should I choose?

        A Mac with an M-series chip is Apple Silicon/ARM64; an older Intel Mac uses x64. On Windows, open Settings > System > About and read System type for x64 or ARM64.

        Is it normal for npm, npx, and Node.js versions to differ?

        Yes. They are different tools and their version numbers do not need to match. npm and npx commonly show the same or a nearby npm version.

        What if the download is slow, times out, or reports a certificate error?

        Check the system clock and company proxy first. If the official page is slow, use the clearly marked third-party mainland-China mirror, but never disable TLS, ignore a certificate error, or use an unknown file-sharing link.

        Do I need administrator access or sudo?

        An official .pkg or .msi may show a normal operating-system permission prompt. Confirm the publisher and follow that prompt, but do not add sudo to npm commands or send your computer password to an AI.

        Keep exploring with the community

        Get practical setup help, exchange ideas, and follow what is next for Yeelight AI.

        WhatsApp

        Yeelight AI Community

        Meet other Yeelight AI users and get help with your setup.

        Scan with WhatsApp or open the group directly.
        WhatsApp

        Yeelight AI Community

        QR code for the Yeelight AI Community on WhatsApp

        Scan with WhatsApp or open the group directly.