-bash: node: command not found
时间: 2023-09-03 08:06:48 浏览: 123
http-server安装成功后,提示 ~bash command not found 在安装目录下却可以
This error message is typically shown when you try to run the "node" command in the terminal, but the Node.js runtime environment is not installed on your system or is not properly configured.
To resolve this issue, you need to install Node.js on your system. Depending on your operating system, there are different ways to install Node.js.
For example, on Linux, you can use the package manager to install Node.js. For instance, on Ubuntu:
```
sudo apt-get update
sudo apt-get install nodejs
```
On macOS, you can use Homebrew to install Node.js:
```
brew update
brew install node
```
After installing Node.js, you may need to restart your terminal or open a new terminal window to apply the changes. Then, try running the "node" command again to verify that it works.
阅读全文