Can't install angular-cli on Mac

前端 未结 12 1120
南笙
南笙 2020-12-28 23:33

This is probably very trivial, but I am hitting my head against the wall while I am trying to (unsuccessfully) install angular-cli.

I am following the official angul

12条回答
  •  生来不讨喜
    2020-12-29 00:08

    To get rid of access errors, these steps can help:

    Step1: Homebrew installation[https://brew.sh/]: (on terminal)

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    Step2: brew install node

    Check version: node -v, npm -v
    

    Step3: brew install -g angular-cli

    Check version: ng --version
    

    Step4: ng new First-App

提交回复
热议问题