2017-09-22 2 views
0

npm 패키지를 관리하기 위해 원사를 사용하고 있습니다. 내가 npm install을하면 모든 것이 정상적으로 작동합니다. 내가 yarn install 일을하려고하는 경우에는 다음과 같은 오류와 함께 실패 :이 내부 저장소를 가리키는실 설치 패키지를 찾을 수 없지만 npm 설치는

info No lockfile found. 
[1/4] Resolving packages... 
error Couldn't find package "ag-grid" on the "npm" registry. 
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 

. 왜 이것이 작동하지 않습니까?

답변

0

여러 가지 시도를하고 너무 많은 Google 페이지를 살펴본 결과, 나는 알아 냈습니다.

registry=https://internal-repo.com/some-path/ 
: 그것은 후행 슬래시를 요구하면서

registry=https://internal-repo.com/some-path 

:

문제는 내가 .npmrc에 다음과 같이 설정되었다이었다