Search code examples
npmangular-cli

ng new didn't work, showing blank terminal screen


I want to create my first Angular project. I have a problem at the beginning, because when i go to the project folder and type:

ng new my-first-project

Nothing happens. I only see blank terminal:

enter image description here

My:

npm -v: 6.4.1
node -v: 10.11.0
ng -v: Mg++ version:
  Mg++ 1.5beta1 (formerly MicroGnuEmacs Adv.)

I tried:

sudo npm uninstall -g angular-cli @angular/cli 
npm cache clean 
sudo npm install -g @angular/cli

but nothing has changed. I also tried the same with node 8.x.x however, the effect was the same.

I working on Ubuntu 16.0.4 and my default system language is different than English.


Solution

  • Try this

    mkdir ~/.npm-global
    npm config set prefix '~/.npm-global'
    export PATH=~/.npm-global/bin:$PATH
    source ~/.profile