yarn install 시에 에러

윤한영·2023년 9월 11일
0

공부슬금슬금

목록 보기
4/7

Yarn or yarn install을 쳤는데 "Error: incorrect data check at..." 에러가 뜰 때

# nvm 다운로드
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

# nvm 다운로드 확인
nvm list

# 에러가 뜬다면
export NVM_DIR="$HOME/.nvm"  
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

# 순서대로 입력해서 다시 nvm list 확인
nvm list

# 원하는 버전의 nvm 설치
nvm install 16.20.2

# 확인
nvm list

# 기존의 yarn 삭제
npm uninstall -g yarn

# yarn 설치
npm install -g yarn

# 작업 경로로 가서 node-modules 삭제
rm -rf node_modules

# yarn or yarn install!!!!!!!!!!
yarn install

0개의 댓글