엔진 "노드"는 이 모듈과 호환되지 않습니다. 예상 버전 문제 해결 방법

구성 요소 라이브러리를 설치하면 항상 오류가 보고됩니다.

E:\study\demo> yarn add
yarn install v1.22.17
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
warning url-loader@1.1.2: Invalid bin field for "url-loader".
error commander@9.0.0: The engine "node" is incompatible with this module. Expected version "^12.20.0 || >=14". Got "12.13.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

node_modules수동으로 마우스 오른쪽 버튼을 클릭하여 폴더를 삭제 하고 npm캐시를 지웁니다.

npm cache clean --force

여전히 작동하지 않습니다.

나중에 온라인에서 해결책을 찾았습니다. 오류를 무시하십시오.

터미널 입력 명령:

yarn config set ignore-engines true

그런 다음 종속 항목을 다시 설치하고 프로젝트를 실행합니다.
여기에 이미지 설명 삽입

추천

출처blog.csdn.net/HH18700418030/article/details/129671931