Answer the question
In order to leave comments, you need to log in
After installation, the command is not available - what to do?
Hello. I run the following command in the terminal:
npm i knex -g
knex migrate:latest
command not found: knex
Answer the question
In order to leave comments, you need to log in
During the execution of the command, the shell looks for an executable file in all directories registered in $ PATH. Check if your variable is correct (echo $PATH). Locate the file with locate or find and try running it with an absolute path (/usr/bin/knex for example). In UNIX, nothing is lost just like that, it is important to understand this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question