angular cli install with yarn

반응형



nodejs 와 npm 이 설치되어 있다는 전제 하에 아래를 진행.


npm install -g yarn

npm install -g @angular/cli@latest

yarn global add @angular/cli@latest


ng config -g cli.packageManager yarn


ng new ng-yarn-test-project


cd ng-yarn-test-project


ng serve




참고: 

yarn global ls

yarn --version

npm --version

ng --version



참조: https://medium.com/@beeman/how-to-do-x-in-angular-cli-v6-db7530c23066

ng get / set 명령어가 ng config 로 변경되었다. get 은 아예 없어진 듯 하다. 


https://appdividend.com/2018/10/20/how-to-update-angular-cli-to-version-7/


http://han41858.tistory.com/47?fbclid=IwAR0vkHhxBR5jduQtzdPd9jZQUspEvGvF60qBNSSmfBL3J7raX6gdD7KJHpw



angular 6 > 7 upgrade


sudo npm uninstall -g angular-cli

sudo npm cache verify

sudo npm install -g @angular/cli@latest

sudo npm cache verify

ng --version


yarn global ls

yarn global remove @angular/cli

yarn global add @angular/cli@latest

yarn global ls 


반응형

댓글

Designed by JB FACTORY