2016-06-03 5 views
2

npm install을 실행할 때 분마다 서로 다른 npm 패키지의 피어 종속성을 얼마나 정확하게 만족시키는 지 알아 내려는 데 어려움을 겪고 있습니다. 이 오류 메시지가 나타납니다.NPM의 피어 종속성 문제 해결

npm ERR! peerinvalid The package [email protected] does not satisfy 
its siblings' peerDependencies requirements! 
npm ERR! peerinvalid Peer [email protected] wants [email protected]^2.4.0 
npm ERR! peerinvalid Peer [email protected] wants [email protected]^2.0.0 
npm ERR! peerinvalid Peer [email protected] wants [email protected] 
npm ERR! peerinvalid Peer [email protected] wants [email protected]<2.3.0 

나는 몇 가지 시도에 실패하고 여기에 솔루션에 도착하는 방법을 이해할 수 없습니다.

+0

package.json을 표시 할 수 있습니까? –

답변

3

당신은 아마도 [email protected]을 전세계에 설치했을 것입니까?

시도의 제거는 그것을 -g 및 NPM 다시

는 또한 일부 버전은 자신의 선이 어떻게 든 교차했다처럼

이 보이는 것은 이쪽을 봐 설치 실행합니다. 노드 번호 모듈을 제거하고 npm install을 다시 설치하고 수정했습니다. npm dependency issue when installing... well, pretty much anything


오류 메시지가없는

는 설치하려는 하고있는 패키지에 관련된다. 즉, 예를 들어 kss 오류가 kss에 문제가 있음을 의미하지 않습니다.

그래, 뭐? 설치 시도 중에 프롬프트되는 추가 메시지를 확인하고 문제를 일으키는 패키지를 찾으십시오. 섹션

npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements! 
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0 
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0 
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0 

https://futurestud.io/blog/how-to-fix-npm-package-does-not-satisfy-its-siblings-peerdependencies-requirements

그들의 솔루션 중 하나를 업데이트하는 것입니다 또는 모듈을 제거

처럼 보인다.