반응형
# download and install Node.js
brew install node@20
# verifies the right Node.js version is in the environment
node -v # should print `v20.15.0`
# verifies the right NPM version is in the environment
npm -v # should print `10.7.0`
//node 16 버전 다운그레이드
brew search node
brew unlink node
brew install node@16
//overwrite, reinstall
brew link --overwrite node@16
brew link node@16
brew reinstall node@16
sudo
sudo npm install -g n
sudo n 16.13.2
sudo 비밀번호 초기화
sudo passwd root
출처: https://velog.io/@esc/mac-brew-node-%EB%8B%A4%EC%9A%B4%EA%B7%B8%EB%A0%88%EC%9D%B4%EB%93%9C
반응형
'IT > npm' 카테고리의 다른 글
node.js 다운그레이드 (0) | 2022.09.28 |
---|---|
[npm] npm(node.js)이란? (0) | 2020.02.11 |