Faced the same issue on Ubuntu 20.04.4 LTS after installing ng-common package and doing some npm build/ install/ run commands.
The part of my .bash_history
file before I've faced the issue:
npm run build
ng
sudo apt install ng-common
npm run build
ls
sudo npm run build
npm run build
npm start
npm run build .
npm install
npm start
npm run build
npm start
As I discovered, the issue lied in .bashrc
file that had the following lines:
# Load Angular CLI autocompletion.
source <(ng completion script)
It turned out that I've enabled CLI autocompletion during npm run build
and .bashrc
was updated by ng-common package appropriately. Remove the line from .bashrc
to get your terminal working.
P.S. In order to edit .bashrc
file you may use either root shell in safe mode or you may edit the file using text editor in GUI.