Skip to content

Command not found #10654

Answered by achrinza
tky0065 asked this question in Q&A
Sep 16, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This probably means that the PATH environment variable is not configured to search for NPM-installed binaries.

If you're on Linux / macOS, you can run this command to fix it for that specific terminal session:

export PATH="$PATH:$(npm config get prefix)/bin"

To make it a permanent fix, add that line to the end of your shell's user initialisation file. The exact file to edit is dependent on which shell you're using.

Shell OS Initialisation file location
Bash Windows (via Git Bash) Linux, pre-macOS Catalina ~/.bashrc
Zsh Linux, macOS Catalina onwards ~/.zshrc

This will apply for to any new terminal sessions for your user moving forward.


If you don't want to fiddle with your mac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tky0065
Comment options

Answer selected by tky0065
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants