March 3, 2021 in Troubleshooting2 minutes
![nproc: command not found [How To Fix]](/command-not-found/nproc-command-not-found.png)
When you run nproc command in linux terminal / console, you get the following error message
nproc: command not foundTo fix this problem, we can install nproc using the command below.
sudo apt-get -y install coreutilsThis command might take some time to finish depending on your machine internet connection.
You can also use apt command to install coreutils.
sudo apt -y install coreutilsOr if you have aptitude installed you can use the following command.
sudo aptitude install coreutilsIn Alpine Linux, we can install nproc using the command below.
apk add coreutilsIn Arch Linux, to fix this error message, we can install nproc using the command below.
pacman -S coreutilsIn CentOS or other RHEL based Linux distribution, we can install nproc using the command below.
yum install coreutilsIn Fedora we can use dnf command to install nproc using the command below.
dnf install coreutilsTo fix this problem, we can install nproc using the command below.
brew install coreutils