1. 특정 node 버전으로 설정
nvm
을 통해 사용하려는 특정 node 버전으로 설정한다.
nvm으로 node버전 관리하기(mac)
🧐 프로젝트마다 요하는 node버전이 다르며, 여러 개의 프로젝트를 진행할 경우 노드 버전을 변경해줘야한다. 하지만 조금 더 편하게 노드 버전을 변경할 순 없을까? 이번시간에는 nvm에 대해 알
mong-blog.tistory.com
2. 특정 Angualr CLI 버전 설치
설치할 Angular CLI의 버전 알아내기
본인의 경우 기존 프로젝트에서 사용하는 CLI 버전으로 다운그레이드하기 위함으로,
package.json
의 devDependencies
를 통해 알아냈다.
"devDependencies": {
"@angular/cli": "^xx.xx.xx",
}
특정 버전으로 설치하기
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@xx.x.xx
✅ npm cache clean
이 에러가 발생하면 아래의 커맨드로 진행한다. (permission 이슈)
sudo npm cache clean --force
'Front-end > Angular' 카테고리의 다른 글
[VSCode] Property 'ɵunwrapWritableSignal' does not exist on type "node_modules/..." (0) | 2024.02.13 |
---|---|
[Angular Test/번역] Testing with Mocks & Spies using createSpyObj in Angular (1) | 2024.01.08 |
[Angular] NG8001: 'app-xxx' is not a known element 에러 (0) | 2023.12.10 |
[Angular] Angular 프로젝트 생성 및 실행하기 (0) | 2023.12.05 |