Yarn: λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...

에 λ§Œλ“  2017λ…„ 11μ›” 09일  Β·  109μ½”λ©˜νŠΈ  Β·  좜처: yarnpkg/yarn

➜  fuc git:(master) yarn install
yarn install v1.3.2
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "http://npm.byted.org/debug/-/debug-2.6.9.tgz: getaddrinfo ENOTFOUND npm.byted.org npm.byted.org:80".
info If you think this is a bug, please open a bug report with the information provided in "/Users/Jimmy/reactjs/react-native/fuc/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
➜  fuc git:(master) βœ—

ν”„λ‘œμ νŠΈλ₯Ό λ³΅μ œν•˜κ³  ' http://npm.byted.org '둜 μ‹œμž‘ν•˜λŠ” 'resolved'νŒ¨ν‚€μ§€ 킀인 yarn.lock의 값을 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” 이것이 μ €μž μ‚¬μš©μž μ •μ˜ 원사 λ ˆμ§€μŠ€νŠΈλ¦¬ 라고 μƒκ°ν•˜μ§€λ§Œ ' http://npm.byted.org 'λ₯Ό λ°©λ¬Έ ν•  μˆ˜λŠ” μ—†μ§€λ§Œ yarn configλŠ” 그것을 κ³ μΉ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€ .

triaged

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

λ‹€λ₯Έ Google 직원을 μœ„ν•΄μ΄ λŒ“κΈ€μ„ μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€. μ €μ—κ²Œ 도움이 된 것은 Yarn λ„€νŠΈμ›Œν¬ μ‹œκ°„ μ œν•œμ„ λŠ˜λ¦¬λŠ” κ²ƒμž…λ‹ˆλ‹€.

yarn add YourPackageHere --network-timeout 100000

λ‚΄κ°€ μ„€μΉ˜ ν•œ νŒ¨ν‚€μ§€κ°€ λ„ˆλ¬΄ μ»€μ„œ (λ˜λŠ” λ„€νŠΈμ›Œν¬κ°€ λ„ˆλ¬΄ 느렀) λ„€νŠΈμ›Œν¬ 문제라고 κ°€μ •ν–ˆμŠ΅λ‹ˆλ‹€. 그럴 μˆ˜λ„ μžˆμ§€λ§Œ 이것이 ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ‹œκ°„μ΄ μ’€ κ±Έλ ΈμŠ΅λ‹ˆλ‹€.

λͺ¨λ“  109 λŒ“κΈ€

"ν•˜μ§€λ§Œ yarn configκ°€ 문제λ₯Ό ν•΄κ²°ν•˜μ§€ λͺ»ν–ˆλ‹€"λŠ” μ˜λ―ΈλŠ” λ¬΄μ—‡μž…λ‹ˆκΉŒ? 무엇을 μ‹œλ„ ν–ˆμŠ΅λ‹ˆκΉŒ?

μ˜ˆμƒ :
'yarn.lock resolved'에 μ—°κ²°ν•  μˆ˜μ—†λŠ” 경우 yarn.lockμ—μ„œ 'resolved'λ₯Ό λ¬΄μ‹œν•˜κ³  'yarn config registry'λ₯Ό μ‚¬μš©ν•˜μ—¬ μ„€μΉ˜ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

μ˜μ‹¬:
μ•„λ‹ˆλ©΄ 잠금 νŒŒμΌμ„ μ‚­μ œν•˜λ„λ‘ ꢌμž₯ν•©λ‹ˆκΉŒ?

μ£„μ†‘ν•©λ‹ˆλ‹€. 제 μ˜μ–΄ μ‹€λ ₯이 쒋지 μ•ŠμŠ΅λ‹ˆλ‹€.

μ£„μ†‘ν•©λ‹ˆλ‹€. 제 μ˜μ–΄ μ‹€λ ₯이 쒋지 μ•ŠμŠ΅λ‹ˆλ‹€.

λ‚΄κ°€ 이해할 μˆ˜μžˆλŠ” ν•œ λ¬Έμ œκ°€λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 그리고 λ‚˜λ„ 잘 λͺ»ν•΄μš” πŸ˜„

버그가 μ•„λ‹™λ‹ˆλ‹€. 이것은 μ˜ˆμƒ 된 λ™μž‘μž…λ‹ˆλ‹€. yarn.lock νŒŒμΌμ„ μ‚­μ œν•˜κ³  yarn install λ‹€μ‹œ μ‚­μ œν•  수 μžˆμŠ΅λ‹ˆλ‹€. λ˜λŠ” μ •ν™•ν•œ νŒ¨ν‚€μ§€κ°€ ν•„μš”ν•œ 경우 yarn.lock νŒŒμΌμ—μ„œ http://npm.byted.org λ₯Ό https://registry.yarnpkg.com 둜 λ°”κΏ€ 수 μžˆμŠ΅λ‹ˆλ‹€.

λ‹€λ₯Έ Google 직원을 μœ„ν•΄μ΄ λŒ“κΈ€μ„ μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€. μ €μ—κ²Œ 도움이 된 것은 Yarn λ„€νŠΈμ›Œν¬ μ‹œκ°„ μ œν•œμ„ λŠ˜λ¦¬λŠ” κ²ƒμž…λ‹ˆλ‹€.

yarn add YourPackageHere --network-timeout 100000

λ‚΄κ°€ μ„€μΉ˜ ν•œ νŒ¨ν‚€μ§€κ°€ λ„ˆλ¬΄ μ»€μ„œ (λ˜λŠ” λ„€νŠΈμ›Œν¬κ°€ λ„ˆλ¬΄ 느렀) λ„€νŠΈμ›Œν¬ 문제라고 κ°€μ •ν–ˆμŠ΅λ‹ˆλ‹€. 그럴 μˆ˜λ„ μžˆμ§€λ§Œ 이것이 ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ‹œκ°„μ΄ μ’€ κ±Έλ ΈμŠ΅λ‹ˆλ‹€.

μ§€κΈˆλ„μ΄ λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€. μ•žμ„œ μ–ΈκΈ‰ ν•œ μ†”λ£¨μ…˜ 쀑 μ–΄λŠ 것도 μž‘λ™ν•˜μ§€ μ•ŠλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. 인터넷은 μ—¬μ „νžˆ β€‹β€‹μž˜ μž‘λ™ν•˜λ©° μ œκ°€μžˆλŠ” μ½” μ›Œν‚Ή 곡간에 λ„€νŠΈμ›Œν¬ λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μ§€λŠ” μ•ŠμŠ΅λ‹ˆκΉŒ?

yarn install --network-timeout 1000000
λ‚˜λ₯Ό μœ„ν•΄ νŠΈλ¦­μ„ ν–ˆμŠ΅λ‹ˆκΉŒ?

β‡’  yarn install --network-timeout 1000000
yarn install v1.3.2
[1/4] πŸ”  Resolving packages...
warning react-native > [email protected]: connect 2.x series is deprecated
warning react-native > fbjs-scripts > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "jest-expo > [email protected]" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0".
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
✨  Done in 234.36s.

μ•Œμ•„ λ‚Έ 것이 잘λͺ»λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λ‚΄ μ˜μ‘΄μ„± 쀑 ν•˜λ‚˜ (λ°˜μ‘ λ„€μ΄ν‹°λΈŒ 자체)λŠ”
잘λͺ»λœ 값이고 거기에 λΆ™μ–΄ μžˆμŠ΅λ‹ˆλ‹€. κΉ¨λ‹«λŠ” 데 μ‹œκ°„μ΄ κ±Έλ ΈμŠ΅λ‹ˆλ‹€.
였λ₯˜ λ³΄κ³ μ„œμ— ν‘œμ‹œλ˜μ§€ μ•Šμ•˜μ§€λ§Œ yarn λͺ…령이
λ‹¬λ¦¬λŠ” 것은 μž μ‹œ λ™μ•ˆ λ‚˜νƒ€λ‚©λ‹ˆλ‹€.

2018 λ…„ 1 μ›” 17 일 10:54에 "Sandino" [email protected]이 μž‘μ„±ν–ˆμŠ΅λ‹ˆλ‹€.

yarn install --network-timeout 1000000
λ‚˜λ₯Ό μœ„ν•΄ νŠΈλ¦­μ„ ν–ˆμŠ΅λ‹ˆκΉŒ?

β‡’ yarn install --network-timeout 1000000
원사 μ„€μΉ˜ v1.3.2
[1/4] πŸ” νŒ¨ν‚€μ§€ ν•΄κ²° 쀑 ...
κ²½κ³  react-native> [email protected] : connect 2.x series is deprecated
κ²½κ³  react-native> fbjs-scripts> [email protected] : -https : ν•˜μ‹­μ‹œμ˜€.
[2/4 https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5%5B2/4 ] 🚚 νŒ¨ν‚€μ§€ κ°€μ Έ μ˜€λŠ” 쀑 ...
[3/4] πŸ”— μ˜μ‘΄μ„± μ—°κ²° ...
κ²½κ³  " jest -expo>
[4/4] πŸ“ƒ μƒˆλ‘œμš΄ νŒ¨ν‚€μ§€ λ§Œλ“€κΈ° ...
성곡 μ €μž₯된 잠금 파일.
✨ 234.36s 후에 μ™„λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€.

β€”
λŒ“κΈ€μ„ λ‹¬μ•˜ κΈ° λ•Œλ¬Έμ— μˆ˜μ‹  ν•œ κ²ƒμž…λ‹ˆλ‹€.
이 이메일에 직접 λ‹΅μž₯ν•˜κ³  GitHubμ—μ„œ ν™•μΈν•˜μ„Έμš”.
https://github.com/yarnpkg/yarn/issues/4890#issuecomment-358179301 λ˜λŠ” μŒμ†Œκ±°
μ‹€
https://github.com/notifications/unsubscribe-auth/AJeQ6UFZ6q3OqEIdUXRZKUsuoMFkbJtJks5tLWDzgaJpZM4QXTQJ
.

μ—¬κΈ°μ—μ„œλ„ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν•˜μ—¬ λ„€νŠΈμ›Œν¬ μ‹œκ°„ μ΄ˆκ³Όκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

yarn install --network-timeout 1000000

κΈ°λ³Έ μ œν•œ μ‹œκ°„μ΄ λ„ˆλ¬΄ μž‘μ„κΉŒμš”?

Windowsμ—μ„œ λ™μΌν•œ λ¬Έμ œμ— μ§λ©΄ν•˜κ³  있으며 μ‹œκ°„ μ œν•œμ„ 섀정해도 λ¬Έμ œκ°€ ν•΄κ²°λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. λ°˜λ©΄μ— npm은 잘 μž‘λ™ν•©λ‹ˆλ‹€.

μž‘μ—… : wherehows- web : yarn
원사 μ„€μΉ˜ v1.3.2
[1/5] package.json 확인 쀑 ...
[2/5] νŒ¨ν‚€μ§€ ν•΄κ²° 쀑 ...
[3/5] νŒ¨ν‚€μ§€ κ°€μ Έ μ˜€λŠ” 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
error 예기치 μ•Šμ€ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€ : " https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz : ESOCKETTIMEDOUT".
info 버그라고 μƒκ°λ˜λ©΄ "/Users/athakwani/Desktop/WhereHows/wherehows-web/yarn-error.log"에 제곡된 정보λ₯Ό μ‚¬μš©ν•˜μ—¬ 버그 λ³΄κ³ μ„œλ₯Ό μ—½λ‹ˆ λ‹€.
info이 λͺ…령에 λŒ€ν•œ μ„€λͺ…μ„œλ₯Ό 보렀면 https://yarnpkg.com/en/docs/cli/install 을 λ°©λ¬Έ

μ‹€νŒ¨ : μ˜ˆμ™Έλ‘œ 인해 λΉŒλ“œκ°€ μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€.

여기에 도움이 ν•„μš”ν•˜μ‹­λ‹ˆκΉŒ?

μ†”λ£¨μ…˜μ΄ μ—†κ±°λ‚˜ μ²˜μŒμ— λ„€νŠΈμ›Œν¬ λ¬Έμ œκ°€ μžˆμ—ˆλ˜ μ΄μœ κ°€ μ—†μ§€λ§Œ NETWORK_TIMEOUT 의 기본값은 30 μ΄ˆμž…λ‹ˆλ‹€. network-timeout 은 (λŠ”) ms λ‹¨μœ„μž…λ‹ˆλ‹€. μ•„λ§ˆλ„ 5 λΆ„ μ΄μƒμœΌλ‘œ μ„€μ •ν•˜μ§€ μ•Šμ„ κ²ƒμž…λ‹ˆλ‹€. 그렇지 μ•ŠμœΌλ©΄ λΉŒλ“œκ°€ ~ 16 λΆ„ (1000000ms) λ™μ•ˆ κ·ΈλŒ€λ‘œ μœ μ§€λ©λ‹ˆλ‹€.

https://github.com/yarnpkg/yarn/search?utf8=%E2%9C%93&q=NETWORK_TIMEOUT&type=

@ HarshulSharma000 같은 문제

@marcelori nodejs 8.9.4 (lts)둜 되돌리렀 κ³  ν•œ λ‹€μŒ --network-timeout = 99999둜 μ‹œλ„ν–ˆλŠ”λ° μž‘λ™ν•©λ‹ˆλ‹€.
μ°Έκ³  :- λ‚˜λŠ” μ‹€ 1.4.0을 μ‚¬μš©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

yarn이 ν”„λ‘μ‹œλ₯Ό 톡해 연결을 μ‹œλ„ν•œ 것 κ°™μŠ΅λ‹ˆλ‹€. λ‹€μŒμ€ λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€.

npm config rm proxy
npm config rm https-proxy

μ—¬μ „νžˆμ΄ λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€. λ„€νŠΈμ›Œν¬ μ‹œκ°„ 초과λ₯Ό λŠ˜λ¦¬λŠ” 것은 λ„μ›€μ΄λ˜μ§€ μ•Šμ•˜κ³  @ suhailgupta03 의 ν”„λ‘μ‹œ μ œκ±°λ„ λ„μ›€μ΄λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. μ§€κΈˆμ€ 원사가 μ„€μΉ˜, μΆ”κ°€ λ˜λŠ” μ•„λ¬΄κ²ƒλ„ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. μ„Έ 가지 λ‹€λ₯Έ λ„€νŠΈμ›Œν¬λ₯Ό 톡해 μ‹œλ„ν–ˆμŠ΅λ‹ˆλ‹€.

여기도 λ§ˆμ°¬κ°€μ§€ ...

여기도 κ°™λ‹€

"μ •λ§λ‘œ λ„€νŠΈμ›Œν¬ μ—°κ²° λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆκΉŒ?" λ‚˜λŠ” κ·Έλ ‡κ²Œ μƒκ°ν•˜μ§€ μ•ŠλŠ”λ‹€. 100Mb의 인터넷이 μžˆμŠ΅λ‹ˆλ‹€. λ¬Έμ œκ°€μžˆλŠ” μ„œλΉ„μŠ€κ°€ μ—†μŠ΅λ‹ˆλ‹€. λ‹€μš΄λ‘œλ“œλŠ” μ™„λ²½ν•˜κ³  VOIPλŠ” μ™„λ²½ν•˜λ©° NPM은 λΉ›λ‚©λ‹ˆλ‹€. μ‹€λ§Œ 가지고 μžˆμ–΄μš” ... λ­”κ°€ μ–΄λ‘μš΄ 일이 μΌμ–΄λ‚˜κ³  μžˆμ–΄μš”.

μ—…λ°μ΄νŠΈ : λ‚˜λŠ” μ•½κ°„μ˜ 뢀두 νŠΈλ¦­μ„ν–ˆκ³  이제 잘 μž‘λ™ν•©λ‹ˆλ‹€ https://github.com/yarnpkg/yarn/issues/5259#issuecomment -379769451

μ˜λ„μ μœΌλ‘œ μ„€κ³„λœ 것일 수 μžˆμŠ΅λ‹ˆλ‹€. ~/.yarnrc 에 μžλ™ 생성 된 λ ˆμ§€μŠ€νŠΈλ¦¬κ°€ μžˆμŠ΅λ‹ˆλ‹€. μ•„λ§ˆλ„ VPN λ˜λŠ” κ·Έ λ’€μ—μžˆλŠ” κ²ƒμΌκΉŒ μš”?
```
고양이 ~ / .yarnrc

이 νŒŒμΌμ€ μžλ™ 생성 된 νŒŒμΌμž…λ‹ˆλ‹€. 이 νŒŒμΌμ„ 직접 νŽΈμ§‘ν•˜μ§€ λ§ˆμ‹­μ‹œμ˜€.

원사 잠금 파일 v1

λ ˆμ§€μŠ€νŠΈλ¦¬ " https://artifactory.some.net/api/npm "
lastUpdateCheck 1233305747

λ‚΄ (λ ˆμ§€μŠ€νŠΈλ¦¬ μ£Όμ†Œκ°€ λΉ„μ–΄μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€-λ­”κ°€λ₯Ό ν¬ν•¨ν•΄μ•Όν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆκΉŒ?) :

=> cat ~/.yarnrc
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


lastUpdateCheck 1523327705543

κ·ΈλŸ¬λ‚˜ μ§€κΈˆκΉŒμ§€ "뢀두 트릭"은 μ €μ—κ²Œ 잘 μž‘λ™ν•©λ‹ˆλ‹€.

@adjavaherian 이것은 μž‘λ™ν•©λ‹ˆλ‹€! λ‚΄ νšŒμ‚¬λŠ” VPN URL에 λΆ™μ–΄μžˆμ—ˆμŠ΅λ‹ˆλ‹€. κ·Έλž˜λ„ μ™œ κ·Έλ ‡κ²Œ μ„€μ •λ˜μ—ˆλŠ”μ§€ λͺ¨λ₯΄κ² μŠ΅λ‹ˆλ‹€. 싀에 VPN을 μ „ν˜€ μ‚¬μš©ν•˜μ§€ μ•ŠκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.

@MichelDiz κ°€ μœ„μ— κ²Œμ‹œ ν•œ "voodoo"νŠΈλ¦­μ€ μ €μ—κ²Œλ„ νš¨κ³Όμ μ΄μ—ˆμŠ΅λ‹ˆλ‹€.

κ·Έλž˜μ„œ,이 문제λ₯Ό ν•΄κ²°ν•˜λŠ” 방법?
Windowsμ—μ„œ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

+1

μ΄λŸ¬ν•œ μ’…λ₯˜μ˜ 였λ₯˜λŠ” μ‚¬μš©μž λ„€νŠΈμ›Œν¬κ°€ yarn.lock 파일이 μ§€μ •ν•œ 일뢀 νŒ¨ν‚€μ§€ λ¦¬μ†ŒμŠ€μ— μ•‘μ„ΈμŠ€ ν•  수 없을 λ•Œ λ°œμƒν•©λ‹ˆλ‹€.
yarn.lock νŒŒμΌμ„ ν™•μΈν•˜κ±°λ‚˜ yarn.lock을 μ‚­μ œ ν•œ λ‹€μŒ npm λ ˆμ§€μŠ€νŠΈλ¦¬λ₯Ό λ‹€λ₯Έ 곡용 λ ˆμ§€μŠ€νŠΈλ¦¬λ‘œ λ³€κ²½ ν•œ λ‹€μŒ yarn install .

μš”μ μ€ λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.
개인 λ ˆμ§€μŠ€νŠΈλ¦¬λ₯Ό μ‚¬μš©ν•˜μ§€ λ§ˆμ‹­μ‹œμ˜€.
λ„€νŠΈμ›Œν¬μ˜ λ ˆμ§€μŠ€νŠΈλ¦¬ 연결을 ν™•μΈν•˜μ‹­μ‹œμ˜€.

Yarn version: 
  1.9.4

Node version: 
  9.11.2

Platform: 
  win32 x64

Trace: 
  Error: https://registry.yarnpkg.com/grid-styled/-/grid-styled-4.1.0.tgz: ESOCKETTIMEDOUT
      at ClientRequest.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:138095:19)

: 아이폰 :
μˆ˜λ™ λ‹€μš΄λ‘œλ“œλ₯Ό μ‹œλ„ν•˜λ©΄ μž‘λ™ν•©λ‹ˆλ‹€.

λ‚΄ 개인 ν”„λ‘μ‹œ npm의 문제라고 μƒκ°ν–ˆμ§€λ§Œ ν˜Όμžκ°€ μ•„λ‹ˆ μ–΄μ„œ κΈ°μ©λ‹ˆλ‹€! 같은 λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€. λ ˆμ§€μŠ€νŠΈλ¦¬ URL을 λ³΅μ‚¬ν•˜μ—¬ 크둬에 λΆ™μ—¬ λ„£μœΌλ©΄ 파일이 λ‹€μš΄λ‘œλ“œλ©λ‹ˆλ‹€.

이것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€.

$ 원사 ꡬ성 μ‚­μ œ ν”„λ‘μ‹œ
$ yarn install --network-timeout 1000000

μ§€κΈˆ μ΄λŸ¬ν•œ λ¬Έμ œκ°€ λ°œμƒν•˜μ§€λ§Œ https://registry.yarnpkg.com 도 μ‘λ‹΅ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 일반적인 쀑단 일 수 μžˆμŠ΅λ‹ˆλ‹€.


νŽΈμ§‘ : https://status.yarnpkg.com/ 확인 ν›„ Wi-Fi 연결이 νŠΉμ • URL에 μ—°κ²°ν•  수 μ—†λ‹€κ³  μƒκ°ν–ˆμŠ΅λ‹ˆλ‹€. λ‹€λ₯Έ μ›Ή μ‚¬μ΄νŠΈλŠ” 잘 μž‘λ™ν•©λ‹ˆλ‹€ ... λͺ¨λ°”일 λ„€νŠΈμ›Œν¬λ‘œ λ³€κ²½ ν•œ λ‹€μŒ μž‘λ™ν•©λ‹ˆλ‹€.

λͺ¨λ“  λͺ¨λ“ˆμ˜μ΄ 볡제본이 μ‚¬μš©λ˜λŠ” μ΄μœ λŠ” λ¬΄μ—‡μž…λ‹ˆκΉŒ? npmμ—μ„œ 직접 보내지 μ•ŠμœΌμ‹œκ² μŠ΅λ‹ˆκΉŒ?
더 λ§Žμ€ 정보λ₯Ό μ–Έμ œ, μ™œ λ‹€μš΄λ‘œλ“œν•΄μ•Όν•©λ‹ˆκΉŒ?

μ €μ—κ²ŒλŠ” npmjs.org 계정에 두 가지 μš”μ†Œ 인증을 μΆ”κ°€ν–ˆκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.

λ‚˜λŠ” 달렸닀 :

npm logout
npm login

그런 λ‹€μŒ MFA OTP μš”μ²­μ„ ν¬ν•¨ν•œ μ„ΈλΆ€ 정보λ₯Ό μž…λ ₯ν•©λ‹ˆλ‹€. 그런 λ‹€μŒ λͺ¨λ“  것이 λ‹€μ‹œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

Vadorequest, 같은 λ¬Έμ œμž…λ‹ˆλ‹€. μ…€λ£°λŸ¬ λ„€νŠΈμ›Œν¬λ₯Ό μ‚¬μš©ν•  λ•Œ JSON을 λ˜μ°Ύμ•˜μŠ΅λ‹ˆλ‹€. Wi-Fi λ„€νŠΈμ›Œν¬λ₯Ό μ‚¬μš©ν•  λ•Œ 404μž…λ‹ˆλ‹€.

인터넷 제곡 업체와 κ΄€λ ¨λœ 것일 μˆ˜λ„ 있고, μ–΄λ–€ 이유둜 일뢀 URL이 μ°¨λ‹¨λ˜μ—ˆμ„ μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. Wi-Fiμ—μ„œ μ‹€νŒ¨ν•˜κ³  4Gλ₯Ό 톡해 μž‘λ™ν•˜λŠ” λ‹€λ₯Έ μ΄μœ λŠ” μ—†μŠ΅λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ κ·Έλ ‡λ‹€λ©΄ 정말 μ΄μƒν•©λ‹ˆλ‹€.

@Vadorequest 문제λ₯Ό ν•΄κ²° ν–ˆμŠ΅λ‹ˆκΉŒ? λ‚˜λ„ λ§Œλ‚¬λ‹€.

λ³„λ‘œ μ„€λͺ… ν•  수 μ—†μŠ΅λ‹ˆλ‹€. 방금 λͺ¨λ°”일 λ„€νŠΈμ›Œν¬λ‘œ μ „ν™˜ν–ˆλŠ”λ° μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€. 이제 Wi-Fi둜 λŒμ•„ μ™”κ³  μž‘λ™ν•©λ‹ˆλ‹€. λ„€νŠΈμ›Œν¬λ₯Ό λ‹€μ‹œ μ‹œμž‘ν•˜κ±°λ‚˜ λ‹€λ₯Έ λ„€νŠΈμ›Œν¬λ‘œ μ „ν™˜ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²° 될 수 μžˆμŠ΅λ‹ˆλ‹€.

μ˜€λŠ˜λ„ 같은 λ¬Έμ œκ°€ λ°œμƒν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€. ν”„λ‘μ‹œλ₯Ό μ‚­μ œν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

yarn config delete proxy

였늘 μ˜€ν›„μ—λŠ” ν”„λ‘μ‹œλ₯Ό μ‚­μ œν•˜κ±°λ‚˜ 아무것도 μ‘°μ •ν•  ν•„μš”μ—†μ΄ μž‘λ™ν•©λ‹ˆλ‹€.

μœ„μ˜ λͺ¨λ“  μ˜΅μ…˜μ„ μ‹œλ„ν–ˆμ§€λ§Œ μ•„λ¬΄λŸ° νš¨κ³Όκ°€ μ—†μ—ˆμ§€λ§Œ μ—¬μ „νžˆ λ™μΌν•œ 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€. μ•„λž˜

info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/gulp-cli: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443".

μžμ„Έν•œ λ‚΄μš©μœΌλ‘œ λͺ…령을 μ‹€ν–‰ν•  λ•Œ μ•„λž˜ 좜λ ₯이 λ‚˜νƒ€λ‚©λ‹ˆλ‹€.

sudo yarn --verbose global add gulp-cli
yarn global v1.10.1
verbose 0.247 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.247 Found configuration file "/home/prasad/.npmrc".
verbose 0.249 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.249 Checking for configuration file "/usr/etc/npmrc".
verbose 0.249 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.25 Found configuration file "/home/prasad/.npmrc".
verbose 0.25 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.25 Found configuration file "/home/prasad/.npmrc".
verbose 0.251 Checking for configuration file "/home/.npmrc".
verbose 0.253 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.254 Found configuration file "/home/prasad/.yarnrc".
verbose 0.254 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.254 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.254 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.255 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.255 Found configuration file "/home/prasad/.yarnrc".
verbose 0.255 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.255 Found configuration file "/home/prasad/.yarnrc".
verbose 0.256 Checking for configuration file "/home/.yarnrc".
verbose 0.26 current time: 2018-10-02T04:53:47.526Z
verbose 0.263 Checking for configuration file "/usr/local/share/.config/yarn/global/.npmrc".
verbose 0.264 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.264 Checking for configuration file "/usr/etc/npmrc".
verbose 0.264 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.264 Found configuration file "/home/prasad/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.config/yarn/global/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.config/yarn/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.config/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.266 Checking for configuration file "/usr/local/.npmrc".
verbose 0.266 Checking for configuration file "/usr/.npmrc".
verbose 0.266 Checking for configuration file "/usr/local/share/.config/yarn/global/.yarnrc".
verbose 0.267 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.267 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.267 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.267 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.268 Found configuration file "/home/prasad/.yarnrc".
verbose 0.268 Checking for configuration file "/usr/local/share/.config/yarn/global/.yarnrc".
verbose 0.268 Checking for configuration file "/usr/local/share/.config/yarn/.yarnrc".
verbose 0.268 Checking for configuration file "/usr/local/share/.config/.yarnrc".
verbose 0.269 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.269 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.269 Checking for configuration file "/usr/local/.yarnrc".
verbose 0.269 Checking for configuration file "/usr/.yarnrc".
[1/4] Resolving packages...
verbose 0.367 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 3.487 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 6.496 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 9.505 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 12.513 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
verbose 12.521 Error: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
error An unexpected error occurred: "https://registry.yarnpkg.com/gulp-cli: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443".
info If you think this is a bug, please open a bug report with the information provided in "/usr/local/share/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

μ°Έκ³  : Ubuntu 16.04, nodejs : v8.12.0을 μ‚¬μš©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

yarn install --network-timeout 1000000이 λ‚˜λ₯Ό μœ„ν•΄ νŠΈλ¦­μ„ν–ˆμŠ΅λ‹ˆλ‹€.

@melkishengue 그것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν•˜μ§€ μ•Šμ•˜λ‹€
sudo yarn --network-timeout 100000 global add gulp-cli
μ—¬μ „νžˆ 같은 였λ₯˜

@prasadram yarn global add gulp -cli --network-timeout 100000은 μ–΄λ–»μŠ΅λ‹ˆκΉŒ?

@melkishengue λ‹΅μž₯ μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€. μ—¬μ „νžˆ μž‘λ™ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

[Java is awesome]:~$ sudo yarn global add gulp-cli --network-timeout 100000
[sudo] password for prasad: 
yarn global v1.10.1
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/gulp-cli: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443".
info If you think this is a bug, please open a bug report with the information provided in "/usr/local/share/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

λ‚΄ Macμ—μ„œ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 이것은 μ»΄ν“¨ν„°μ˜ DNS μ„€μ •κ³Ό κ΄€λ ¨μ΄μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. λ‚΄κ°€ ν•œ 일은 μˆ˜λ™μœΌλ‘œ DNS μ„œλ²„λ₯Ό 8.8.8.8 (Google DNS) 및 208.67.222.222 (Open DNS)둜 μ„€μ • ν•œ 것이며 이제 ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 'yarn install'을 λ‹€μ‹œ μ‹€ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Macκ³Ό Linuxμ—μ„œλŠ” Windowsμ—μ„œλ§Œ λ¬Έμ œκ°€ μ—†μ—ˆμŠ΅λ‹ˆλ‹€. ν”Œλž«νΌκ³Όλ„ κ΄€λ ¨μ΄μžˆμ„ 수 μžˆμŠ΅λ‹ˆλ‹€.

@ yzhe8769 μš°λΆ„νˆ¬μ—μ„œ DNS 섀정을 λ³€κ²½ν•˜λŠ” 방법을 μ•Œκ³  μžˆμŠ΅λ‹ˆκΉŒ? λ‚˜λŠ” 거의 λͺ¨λ“  μ˜΅μ…˜μ„ μ‹œλ„ν–ˆκΈ° λ•Œλ¬Έμ— κ·Έ μ˜΅μ…˜λ„ μ‹œλ„ν•˜κ³  μ‹ΆμŠ΅λ‹ˆλ‹€.

쑰사 ν›„ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λ‚΄ 뢄석은 μ•„λž˜λ₯Ό ν™•μΈν•˜μ‹­μ‹œμ˜€
μ•„λž˜ λͺ…령을 쳀을 λ•Œ 호슀트λ₯Ό μ•Œ 수 μ—†μŠ΅λ‹ˆλ‹€.

curl registry.yarnpkg.com
curl: (6) Couldn't resolve host 'registry.yarnpkg.com'

LANκ³Ό OSκ°€ μš°λΆ„νˆ¬ 16.04둜 λ°μŠ€ν¬νƒ‘μ„ μ‚¬μš©ν•˜κ³  μžˆμ§€λ§Œ λ™μΌν•œ λͺ…령이 Macμ—μ„œ 잘 μž‘λ™ν•©λ‹ˆλ‹€.
그런 λ‹€μŒ 원사가 μ•„λ‹ˆλΌλŠ” 것을 κΉ¨λ‹¬μ•˜μœΌλ―€λ‘œ resolv.conf의 etc 폴더에 google dsn을 μΆ”κ°€ ν•œ λ‹€μŒ μ œλŒ€λ‘œ μž‘λ™ν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€.
λˆ„κ΅°κ°€λ₯Ό λ„μšΈ 수 있기λ₯Ό λ°”λžλ‹ˆλ‹€

쑰사 ν›„ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λ‚΄ 뢄석은 μ•„λž˜λ₯Ό ν™•μΈν•˜μ‹­μ‹œμ˜€
λ‚΄κ°€ μ•„λž˜λ₯Ό 쳀을 λ•Œ λ‚˜λŠ” λͺ¨λ₯΄λŠ” 호슀트λ₯Ό μ–»μ—ˆλ‹€

curl registry.yarnpkg.com
curl: (6) Couldn't resolve host 'registry.yarnpkg.com'

LANκ³Ό OSκ°€ μš°λΆ„νˆ¬ 16.04둜 λ°μŠ€ν¬νƒ‘μ„ μ‚¬μš©ν•˜κ³  μžˆμ§€λ§Œ λ™μΌν•œ λͺ…령이 Macμ—μ„œ 잘 μž‘λ™ν•©λ‹ˆλ‹€.
그런 λ‹€μŒ 원사가 μ•„λ‹ˆλΌλŠ” 것을 κΉ¨λ‹¬μ•˜μœΌλ―€λ‘œ resolv.conf의 etc 폴더에 google dsn을 μΆ”κ°€ ν•œ λ‹€μŒ μ œλŒ€λ‘œ μž‘λ™ν•˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€.
λˆ„κ΅°κ°€λ₯Ό λ„μšΈ 수 있기λ₯Ό λ°”λžλ‹ˆλ‹€

문제 μ—†λ‹€. λ”°λΌμ„œ λˆ„κ΅¬λ‚˜μ΄ λ¬Έμ œκ°€ λ°œμƒν•˜λŠ” 경우 DNS μ„€μ •μœΌλ‘œ 인해 원사 λ ˆμ§€μŠ€νŠΈλ¦¬ 확인을 λ°©ν•΄ν•˜κΈ° λ•Œλ¬ΈμΌ 수 μžˆμŠ΅λ‹ˆλ‹€.

μΊμ‹œμ— λ‹€λ₯Έ 폴더λ₯Ό μ§€μ •ν•˜λ©΄ λ‚΄ ν™˜κ²½μ—μ„œ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

export YARN_CACHE_FOLDER=/tmp/.cache

λ‚˜λŠ” 당신이 μ œμ•ˆν•œ λͺ¨λ“  것을 μ‹œλ„ν–ˆμ§€λ§Œ μ—¬μ „νžˆ 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

> yarn install --network-timeout 1000000
> yarn install v1.7.0
> [1/4] Resolving packages...
> [2/4] Fetching packages...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> error An unexpected error occurred: "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.328.0.tgz: read ECONNRESET".
> info If you think this is a bug, please open a bug report with the information provided in "C:\\Git\\broadvoice.communicator\\yarn-error.log".
> info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying..

  • 1Gbps 인터넷 (900Mbit 지속, 제둜 λ“œλ‘­μ—μ„œ ν…ŒμŠ€νŠΈ)
  • Ubuntu 18.04
  • 원사 1.10.1
  • nodejs v8.10.0

μ΄λŸ¬ν•œ κ°€μ§œ λ„€νŠΈμ›Œν¬ 였λ₯˜λ„ λ°œμƒν•©λ‹ˆλ‹€.

````
$ 원사 μ„€μΉ˜
원사 μ„€μΉ˜ v1.10.1
[1/4] νŒ¨ν‚€μ§€ ν•΄κ²° 쀑 ...
[2/4] νŒ¨ν‚€μ§€ κ°€μ Έ μ˜€λŠ” 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
error 예기치 μ•Šμ€ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€ : " https://registry.yarnpkg.com/@fortawesome/free -solid-svg-icons /-/ free-solid-svg-icons-5.3.1.tgz : ESOCKETTIMEDOUT".
info 버그라고 μƒκ°λ˜λ©΄ "[..] / yarn-error.log"에 제곡된 μ •λ³΄λ‘œ 버그 λ³΄κ³ μ„œλ₯Όμ—¬μ‹­μ‹œμ˜€.
info이 λͺ…령에 λŒ€ν•œ μ„€λͺ…μ„œλ₯Ό 보렀면 https://yarnpkg.com/en/docs/cli/install 을 λ°©λ¬Έ
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...

Repeating with a `--network-timeout` didn't help.

$ yarn install --network-timeout = 10000
원사 μ„€μΉ˜ v1.10.1
[1/4] νŒ¨ν‚€μ§€ ν•΄κ²° 쀑 ...
[2/4] νŒ¨ν‚€μ§€ κ°€μ Έ μ˜€λŠ” 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
...
```

network-timeout μ–΄λ””μ—λ‚˜ λ¬Έμ„œν™”λ˜μ–΄ μžˆμŠ΅λ‹ˆκΉŒ? Google은 λ‚˜μ—κ²Œ 아무것도주지 μ•ŠμŠ΅λ‹ˆλ‹€ ..

@torifat 이 문제λ₯Ό λ‹€μ‹œ yarn.lock νŒŒμΌμ„ μ‚­μ œν•΄λ„ μ΄λŸ¬ν•œ λ©”μ‹œμ§€κ°€ 계속 ν‘œμ‹œλ©λ‹ˆλ‹€. μ‹€ μΊμ‹œ 및 잠금 νŒŒμΌμ„ μ‚­μ œν•˜λ©΄. 더 많이 μ–»μŠ΅λ‹ˆλ‹€.

이 였λ₯˜ λ©”μ‹œμ§€ λ¬Έμ œλŠ” 원격 npm λ ˆμ§€μŠ€νŠΈλ¦¬ 문제둜 인해 μ΅œκ·Όμ—μ΄ λ©”μ‹œμ§€λ₯Ό μž¬μ‹œλ„ λ©”μ»€λ‹ˆμ¦˜μ˜ μΌλΆ€λ‘œ μΆ”κ°€ ν•œ PR # 6413에 μ˜ν•΄ λ‹€μ‹œ λ‚˜νƒ€λ‚œ κ²ƒμœΌλ‘œ 보이며 일반적으둜 'κ·€ν•˜μ˜'λͺ©μ μ— μ•„λ¬΄λŸ° 영ν–₯을 λ―ΈμΉ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. λ ˆμ§€μŠ€νŠΈλ¦¬μ˜ μ„ μ²œμ  인 문제둜 인해 재 μ‹œλ„κ°€ λ°œμƒν•˜κ³  μ΄λŸ¬ν•œ λ©”μ‹œμ§€μ— μ˜ν•΄ λ“œλŸ¬λ‚˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.
https://github.com/yarnpkg/yarn/pull/6413/files#diff -5d246f90b159bd84bbc99f67527b1a0eR401

λ¬Έμ œλŠ” μ‹€μ œλ‘œμ΄ λ©”μ‹œμ§€κ°€ μ˜€ν•΄μ˜ μ†Œμ§€κ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

1Gbps 인터넷
Ubuntu 18.04
원사 1.10.1
nodejs v8.10.0

잠금 파일 μ—†μŒ :

$ yarn install --network-timeout=30000
yarn install v1.10.1
info No lockfile found.
[1/4] Resolving packages...
warning @vue/cli-service > webpack-bundle-analyzer > [email protected]: Switch to the `bfj` package for fixes and new features!
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
...

μΊμ‹œ λ˜λŠ” 잠금 파일 μ—†μŒ :

yarn install --network-timeout=30000
yarn install v1.10.1
info No lockfile found.
[1/4] Resolving packages...
warning @vue/cli-service > webpack-bundle-analyzer > [email protected]: Switch to the `bfj` package for fixes and new features!
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.4.1.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "[..]/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info There appears to be trouble with your network connection. Retrying...

@arcanis λŠ” npm λ ˆμ§€μŠ€νŠΈλ¦¬μ— μ˜ν•΄ 재 μ‹œλ„κ°€ λ°œμƒν•  λ•Œ yarn 1.11+κ°€ 더 μ •ν™•ν•œ λ©”μ‹œμ§€λ₯Ό κ°€μ§ˆ

internalServerErrorRetrying: 'There appears to be trouble with the npm registry (returned $1). Retrying...'

@whereisaaron μƒˆλ‘œμš΄ 문제λ₯Ό λ§Œλ“€ 수 μžˆμŠ΅λ‹ˆκΉŒ? λŒ“κΈ€μ΄ λ§Žμ€ 였래된 이슈λ₯Ό λ˜μ‚΄λ¦¬λŠ” 것보닀 μƒˆλ‘œμš΄ 이슈λ₯Ό λ§Œλ“œλŠ” 편이 λ‚«λ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.

λ¬Όλ‘ μž…λ‹ˆλ‹€ @torifat; λ‚˜λŠ” κ³„μ†ν•΄μ„œ 쀑볡 문제λ₯Ό λ§Œλ“€κ³  싢지 μ•Šμ•˜μŠ΅λ‹ˆλ‹€. μ§€κΈˆ λ‹Ήμž₯은 1.11이 릴리슀 될 λ•Œ ν•΄κ²° 될 수 μžˆμœΌλ―€λ‘œ 닫은 μƒνƒœλ‘œ λ‘κ² μŠ΅λ‹ˆλ‹€. 1.11에 μ—¬μ „νžˆ λ¬Έμ œκ°€ 있으면 ν•΄λ‹Ή 버전에 λŒ€ν•œ μƒˆ 문제λ₯Ό ꡬ체적으둜 μ—½λ‹ˆ λ‹€.

λ¬Έμ œμ— 직면 ν•œ λ©”μ‹ μ €μ‘°μ°¨.

심지어 1.12.1 λ¦΄λ¦¬μŠ€μ—μ„œ 문제 (2)에 μ§λ©΄ν–ˆμŠ΅λ‹ˆλ‹€.

κΈ°λ³Έ 이미지가 FROM node:10-alpine μ—μ„œ node:11.1.0-alpine 둜 μ—…κ·Έλ ˆμ΄λ“œ 된 docker build μ‹€ν–‰ν•  λ•Œ λ°œμƒν•©λ‹ˆλ‹€.

λ…Έλ“œ 11을 κΈ°λ³Έ μ΄λ―Έμ§€λ‘œ μœ μ§€ν•˜κ³  μ‹ΆκΈ° λ•Œλ¬Έμ— λͺ…령을 yarn μ—μ„œ npm 둜 λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ν•΄μ•Όν–ˆμŠ΅λ‹ˆλ‹€.

1.12.3 및 λ…Έλ“œ 11.1.0 으둜 Windows 10μ—μ„œ 이것이 λ°œμƒν•˜λŠ”μ§€ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

λ…Έλ“œ 버전을 λ‹€μ‹œ 8.12.0 λ³€κ²½ν•˜λ©΄ λͺ¨λ“  것이 문제 (λ˜λŠ” "문제")없이 μž‘λ™ν•©λ‹ˆλ‹€. (λ‚˜λŠ” nvm-windows λ₯Ό 톡해 버전을 λ³€κ²½ν–ˆμŠ΅λ‹ˆλ‹€)

Windows 10, Yarn 1.12.3, NodeJs 11.1.0

λ‚΄ 문제λ₯Ό ν•΄κ²° ν•œ 것은 λ„€νŠΈμ›Œν¬ μ‹œκ°„ 초과λ₯Ό 60 초둜 λŠ˜λ¦¬λŠ” 것이 μ—ˆμŠ΅λ‹ˆλ‹€.

같은 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.
npm config set registry=https://registry.npmjs.com/ μ‹œλ„
그것은 λ‚˜λ₯Όμœ„ν•œ μΌμž…λ‹ˆλ‹€.

yarn이 ν”„λ‘μ‹œλ₯Ό 톡해 연결을 μ‹œλ„ν•œ 것 κ°™μŠ΅λ‹ˆλ‹€. λ‹€μŒμ€ λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€.

npm config rm proxy
npm config rm https-proxy

그것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆλ‹€ yeee

같은 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.
여기에 κ²Œμ‹œ 된 μ†”λ£¨μ…˜ 쀑 μ–΄λŠ 것도 λ„μ›€μ΄λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. λ‚΄ 컴퓨터λ₯Ό μž¬λΆ€νŒ…ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

이 였λ₯˜λ„ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. --verbose μ„€μΉ˜λ₯Ό λ‹€μ‹œ μ‹€ν–‰ν•˜λ©΄ 문제의 원인이 "https://registry.yarnpkg.com/@expo/traveling-fastlane-darwin/-/traveling-fastlane-darwin-1.7.1.tgz 라고 μ•Œλ €μ‘ŒμŠ΅λ‹ˆλ‹€.

Chromeμ—μ„œ λ°©λ¬Έν•΄ λ³΄μ•˜μŠ΅λ‹ˆλ‹€. μΆ©λΆ„νžˆ λ‹€μš΄λ‘œλ“œν–ˆμ§€λ§Œ 100 %둜 μž μ‹œ μ€‘λ‹¨λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 이것은 일반적으둜 μŠ€μΊ” ν•  λ•Œ λ°œμƒν•©λ‹ˆλ‹€. κ½€ 큰 타λ₯΄λ³Όμž…λ‹ˆλ‹€.

보라, Windows Defender μ‹€μ‹œκ°„ 검색을 λΉ„ν™œμ„±ν™”ν•˜λ©΄ μ œλŒ€λ‘œ μž‘λ™ν•©λ‹ˆλ‹€. λ°”μ΄λŸ¬μŠ€ 검사가 λ„ˆλ¬΄ 였래 걸리면 Yarn은이λ₯Ό λ„€νŠΈμ›Œν¬ 문제둜 κ°„μ£Όν•©λ‹ˆλ‹€.

TLDR : Windowsλ₯Ό μ‚¬μš©μ€‘μΈ 경우 μ‹€μ‹œκ°„ 검색을 λΉ„ν™œμ„±ν™”ν•˜κ³  λ‹€μ‹œ μ„€μΉ˜ν•΄λ³΄μ‹­μ‹œμ˜€.

λ‚˜λŠ” λ˜ν•œ 정상 후에 sudo yarn μ‚¬μš© ν•˜μ—¬μ΄ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

E : \ javascript \ React \ confusion> yarn λͺ¨λ©˜νŠΈ μΆ”κ°€
원사 μΆ”κ°€ v1.13.0
[1/4] νŒ¨ν‚€μ§€ ν•΄κ²° 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...
error 예기치 μ•Šμ€ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€ : " http://registry.npmjs.org/moment : getaddrinfo ENOTFOUND domain domain : 8080 ".
info 버그라고 μƒκ°λ˜λ©΄ "E : \ javascript \ React \ confusion \ yarn-error.log"에 제곡된 μ •λ³΄λ‘œ 버그 λ³΄κ³ μ„œλ₯Όμ—¬μ‹­μ‹œμ˜€.
info이 λͺ…령에 λŒ€ν•œ μ„€λͺ…μ„œλ₯Ό 보렀면 https://yarnpkg.com/en/docs/cli/add λ₯Ό λ°©λ¬Έ

λ„μ™€μ£Όμ„Έμš”.
같은 λ¬Έμ œμ— μ§λ©΄ν–ˆμŠ΅λ‹ˆλ‹€.

λ¬Έμ œκ°€ 있으면

정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...

ν”„λ‘μ‹œλ₯Ό κ΅¬μ„±ν•΄μ•Όν•œλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.
λ‹€μŒ λͺ…령을 μ‚¬μš©ν•˜μ‹­μ‹œμ˜€.

yarn config set proxy http : // username : password @ host : port
원사 ꡬ성 μ„€μ • https-proxy http : // username : password @ host : port

λ ˆμ§€μŠ€νŠΈλ¦¬λ₯Ό λ³€κ²½ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

yarn install --registry https://registry.npmjs.org

Windowsμ—μ„œ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμœΌλ©° λ„€νŠΈμ›Œν¬ μ‹œκ°„ 초과λ₯Ό 늘리면 ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€! κ°μ‚¬ν•©λ‹ˆλ‹€

같은 였λ₯˜. ν•΄κ²°ν•˜λ €λ©΄ yarn.lock μ§€μš°κ³  yarn λͺ…령을 μ‹€ν–‰ν•˜μ—¬ λ‹€μ‹œ λ§Œλ“œμ‹­μ‹œμ˜€.

λ¬Έμ œκ°€ 있으면

정보 λ„€νŠΈμ›Œν¬ 연결에 λ¬Έμ œκ°€μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μž¬μ‹œλ„ 쀑 ...

ν”„λ‘μ‹œλ₯Ό κ΅¬μ„±ν•΄μ•Όν•œλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.
λ‹€μŒ λͺ…령을 μ‚¬μš©ν•˜μ‹­μ‹œμ˜€.

yarn config set proxy http : // username : password @ host : port
원사 ꡬ성 μ„€μ • https-proxy http : // username : password @ host : port

문제λ₯Ό ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€. κ°μ‚¬ν•©λ‹ˆλ‹€ :-)

μ–΄μ œμ΄ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. μ‹€λ‘œ @material-ui/icons 을 검색 ν•  수 μ—†μŠ΅λ‹ˆλ‹€. 이 μŠ€λ ˆλ“œμ— λŒ€ν•œ μ œμ•ˆμ„ μ‹œλ„ν–ˆμŠ΅λ‹ˆλ‹€ (λ„€νŠΈμ›Œν¬ μ‹œκ°„ 초과, λ ˆμ§€μŠ€νŠΈλ¦¬ λ³€κ²½, node_modules 제거 및 λ‹€μ‹œ μ„€μΉ˜). κ·ΈλŸ¬λ‚˜ npm을 μ‚¬μš©ν•œ μ„€μΉ˜λŠ” μ„±κ³΅μ μœΌλ‘œ μ™„λ£Œλ©λ‹ˆλ‹€.

νŒ¨ν‚€μ§€ URL을 직접 λ°©λ¬Έν•˜λ©΄ λΈŒλΌμš°μ €μ—μ„œ λ‹€μš΄λ‘œλ“œ ν•  수 μžˆμŠ΅λ‹ˆλ‹€ (1.2MB에 뢈과). 싀을 μ°¨λ‹¨ν•˜λŠ” 것이 무엇인지 ν™•μ‹€ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

@material-ui/icons μ—μ„œλ„ λ˜‘κ°™μ€ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€. Windows κΈ°λ³Έ 원사 λ˜λŠ” λ„€νŠΈμ›Œν¬ μ‹œκ°„ μ΄ˆκ³Όκ°€ ν™•μž₯λ˜κ±°λ‚˜ 무결성 검사가 λΉ„ν™œμ„±ν™” 된 wslμ—μ„œ μ‹€ν–‰λ˜λŠ” 원사에 μ–΄λ–€ μ°¨μ΄κ°€μ—†λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. λ§ˆμ°¬κ°€μ§€λ‘œ λΈŒλΌμš°μ €μ—μ„œ νŒŒμΌμ„ κ°„λ‹¨νžˆ λ‹€μš΄λ‘œλ“œ ν•  수 μžˆμŠ΅λ‹ˆλ‹€. Npm이 잘 μ„€μΉ˜λ©λ‹ˆλ‹€.

νŒ¨ν‚€μ§€μ—μ„œ @material-ui/icons 을 μ œκ±°ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ©λ‹ˆλ‹€.

였늘 λ˜‘κ°™μ€ @material-ui/icons λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. bashμ—μ„œ rm -rf node_modules yarn.lock λ₯Ό μˆ˜ν–‰ν•˜μ—¬μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ ν”„λ‘œμ νŠΈμ—μ„œ yarnκ³Ό κ΄€λ ¨λœ λͺ¨λ“  것을 μ‚­μ œν–ˆμŠ΅λ‹ˆλ‹€. μ‚­μ œ ν”„λ‘œμ„ΈμŠ€κ°€ μ™„λ£Œλœ ν›„ yarn λͺ…령을 μ‹€ν–‰ν–ˆμŠ΅λ‹ˆλ‹€. 그리고 λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆκ³  κ·Έ ν›„ 였λ₯˜κ°€ 보이지 μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

그래 @mustaphaturhan 였늘 @ material-ui / iconsμ—μ„œλ„ λ˜‘κ°™μ€ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€ ... 같은 λ°©μ‹μœΌλ‘œ ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€. : \

~/.yarnrc μ œκ±°ν•˜λ©΄ νš¨κ³Όκ°€ μžˆμŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” νŒ¨ν‚€μ§€κ°€ 맀우 ν¬κ±°λ‚˜ λ§Žμ€ νŒŒμΌμ„ 포함 ν•  λ•Œλ§Œ λ°œμƒν•œλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.
μ‹œκ°„ μ œν•œμ΄μ΄λ₯Ό ν™•μΈν•˜λŠ” κ°€μž₯ 쒋은 방법이 아닐 수 μžˆμŠ΅λ‹ˆλ‹€. μ‹œκ°„ μ œν•œμ΄ 초과되면 1kb-test-ping을 μˆ˜ν–‰ ν•  μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. μ‹€νŒ¨ ν•  κ²½μš°μ—λ§Œ μ‹€μ œλ‘œ 재 μ‹œλ„λ₯Ό μˆ˜ν–‰ ν•  수 μžˆμŠ΅λ‹ˆλ‹€. 그렇지 μ•ŠμœΌλ©΄ λͺ¨λ“  것이 정상이며 μ‹œκ°„μ΄ 쑰금 더 κ±Έλ¦½λ‹ˆλ‹€.

μ—¬μ „νžˆ install @material-ui/icons μ„€μΉ˜ν•  수 μ—†μŠ΅λ‹ˆλ‹€. λ‚˜λŠ” μ œκ±°ν–ˆμŠ΅λ‹ˆλ‹€ node_modules , yarn.lock μ‹€ν–‰ yarn cache clean 둜, μ—…κ·Έλ ˆμ΄λ“œ 된 λ…Έλ“œλ₯Ό 10.16.0 ν•˜κ³  λ‹€μ‹œ μ„€μΉ˜ yarn . μ €λŠ” Windows 10을 μ‚¬μš©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

ν•œ 가지 μ΄μƒν•˜κ²Œλ„ ν”„λ‘œμ νŠΈλ₯Ό μž„μ‹œ 디렉토리에 λ³΅μ œν•˜λ©΄ λͺ¨λ“  νŒ¨ν‚€μ§€λ₯Ό μ„±κ³΅μ μœΌλ‘œ μ„€μΉ˜ν•  수 μžˆμŠ΅λ‹ˆλ‹€. λ¬Έμ œλŠ” λ‚΄ μž‘μ—… κ³΅κ°„μ—μ„œ λ‚˜νƒ€λ‚©λ‹ˆλ‹€. μˆ¨κ²¨μ§„ νŒŒμΌμ„ μ°Ύμ•˜μ§€λ§Œ 아무것도 λ³Ό 수 μ—†μŠ΅λ‹ˆλ‹€. μ—¬μ „νžˆλ³΄κ³  μžˆμŠ΅λ‹ˆλ‹€ :

Error: https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.2.1.tgz: ESOCKETTIMEDOUT`
  at ClientRequest.<anonymous> (C:\Users\<user>\AppData\Roaming\nvm\v10.16.0\node_modules\yarn\lib\cli.js:130217:19)

λ‚΄ ν”„λ‘œμ νŠΈλ₯Ό npm ν•©λ‹ˆλ‹€.

μ–΄λ–»κ²Œ λ“  npm λ‚΄ ν”„λ‘μ‹œλ₯Ό apple.asd μ€€λΉ„ν•˜λ„λ‘ κ΅¬μ„±ν–ˆκΈ° λ•Œλ¬Έμ— λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€ (μ–΄λ–»κ²Œν•˜μ§€ μ•Šμ•˜λŠ”μ§€ λͺ¨λ₯΄κ² μŠ΅λ‹ˆλ‹€). λ‚˜λŠ” yarn config list ν–ˆκ³  κ·Έλ ‡κ²Œ 섀정을 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€. μ œκ±°ν•œ ν›„ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

ip6 μ „μš© λ„€νŠΈμ›Œν¬κ°€ 있고 였λ₯˜κ°€ λ°œμƒν•˜λ©΄ λ‹€μŒμ„ μΆ”κ°€ν•˜μ—¬ ν•΄κ²° 방법을 μ‹œλ„ ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

2606:4700::6810:1723 registry.yarnpkg.com
2606:4700::6810:1723 registry.npmjs.org
2606:4700::6810:ab63 yarnpkg.com

/ etc / hosts. nslookup registry.yarnpkg.com ip6λ₯Ό 얻을 수 μžˆμŠ΅λ‹ˆλ‹€. https://github.com/yarnpkg/yarn/issues/6031

node / npm을 μ œκ±°ν•˜κ³  λ‹€μ‹œ μ„€μΉ˜ν•˜μ—¬ ν•΄κ²° 된 맀우 μœ μ‚¬ν•œ λ¬Έμ œκ°€μžˆμ—ˆμŠ΅λ‹ˆλ‹€.

λ‚˜λ₯Ό μœ„ν•΄ npmκ³Ό yarn lockfile을 λͺ¨λ‘ μ œκ±°ν•˜κ³  yarn install λ‹€μ‹œ μ‹€ν–‰ν•©λ‹ˆλ‹€.

λ˜ν•œ Windows 10μ—μ„œ @material-ui/icons 에 λ¬Έμ œκ°€μžˆμ—ˆμŠ΅λ‹ˆλ‹€. @stewartml이 μ œμ•ˆν•œλŒ€λ‘œ Windows λ°©μ–΄μžλ‘œλΆ€ν„° μ‹€μ‹œκ°„ 보호λ₯Ό λΉ„ν™œμ„±ν™”ν•˜λŠ” 것이 νŠΈλ¦­μ„ μˆ˜ν–‰ν–ˆμŠ΅λ‹ˆλ‹€.

λ„Œ ν•  μˆ˜μžˆμ–΄
npm ꡬ성 rm ν”„λ‘μ‹œ
npm ꡬ성 rm https-proxy
ν”„λ‘μ‹œ 제거
λ˜λŠ” ν”„λ‘μ‹œλ₯Ό μ‚¬μš©ν•˜λ €λ©΄μ΄ μž‘μ—…μ„ μˆ˜ν–‰ ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
$ yarn config set proxy http : // my_company_proxy_url : port
$ yarn config set https-proxy http : // localhost : 3128

λ˜λŠ” μ‹œκ°„ 초과 600000을 λ§Œλ“€λ €λ©΄ z 파일이 클 수 μžˆμŠ΅λ‹ˆλ‹€.
yarn config set network-timeout 600000 -g

λ˜λŠ” κΈ°λ³Έ μ‹œκ°„ μ œν•œμ„ κ·ΈλŒ€λ‘œ μœ μ§€ν•˜λ €λ©΄μ΄ μž‘μ—…μ„ μˆ˜ν–‰ν•˜μ‹­μ‹œμ˜€.
원사 μΆ”κ°€--network-timeout 100000

rm -rf /Users/xxx/.config/yarn/global/yarn.lock
그런 λ‹€μŒ μ™„λ£Œ

μž¬λΆ€νŒ…μœΌλ‘œ ν•΄κ²° : D

제 κ²½μš°μ—λŠ” Windows 10μ—μ„œ AdGuard와 Windows Defenderλ₯Ό κΊΌμ„œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.이 λͺ…령도 μ‚¬μš©ν•©λ‹ˆλ‹€.

yarn install --network-timeout 1000000

μ—¬μ „νžˆμ΄ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€. λ„€νŠΈμ›Œν¬ μ‹œκ°„ 초과λ₯Ό λŠ˜λ¦¬λŠ” 것은 λ„μ›€μ΄λ˜μ§€ μ•ŠμœΌλ©° @ suhailgupta03의 ν”„λ‘μ‹œ μ‚­μ œλ„ λ„μ›€μ΄λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 이제 원 μ‚¬λŠ” μ„€μΉ˜, μΆ”κ°€ λ˜λŠ” 아무것도 μˆ˜ν–‰ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. μ„Έ 가지 λ‹€λ₯Έ λ„€νŠΈμ›Œν¬λ₯Ό 톡해 μ‹œλ„ν–ˆμŠ΅λ‹ˆλ‹€.

μ‹œκ°„μ„ 좔가해도 λ¬Έμ œκ°€ ν•΄κ²°λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. μ—¬μ „νžˆ μ‘΄μž¬ν•˜κ³  ν•΄κ²°ν•˜μ§€ λͺ»ν–ˆμŠ΅λ‹ˆλ‹€.

npm ꡬ성 rm ν”„λ‘μ‹œ
npm ꡬ성 rm https-proxy

μœ„μ˜ λͺ…령이 λ„μ›€μ΄λ˜κΈ°λ₯Ό λ°”λžλ‹ˆλ‹€.

image
μ—¬μ „νžˆ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€.

image
λ„€νŠΈμ›Œν¬ 속도가 μ˜¬λ°”λ₯΄κ²Œ νšλ“λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

image
λ„€νŠΈμ›Œν¬ 속도가 μ˜¬λ°”λ₯΄κ²Œ νšλ“λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

μ™œ 이것이 λ‹«ν˜€ μžˆμŠ΅λ‹ˆκΉŒ? 이것은 κ³„μ†ν•΄μ„œ λ¬Έμ œκ°€λ˜κ³  μžˆμŠ΅λ‹ˆλ‹€. μ™œ? λ§Žμ€ ν”„λ‘œμ νŠΈμ—μ„œ λͺ‡ μ£Ό λ™μ•ˆ λ‚΄ 컴퓨터λ₯Ό κ΄΄λ‘­ ν˜”μŠ΅λ‹ˆλ‹€.

@allthesignals 여기에보고 된 λŒ€λΆ€λΆ„μ˜ λ¬Έμ œλŠ” λ‹€μ–‘ν•œ ꡬ성 λ¬Έμ œμž…λ‹ˆλ‹€. λ‚˜ μžμ‹ μ—κ²Œ 기타가 μžˆμ—ˆλ‹€. 예λ₯Ό λ“€μ–΄ ꡬ성 λ¬Έμ œμž…λ‹ˆλ‹€. 잘λͺ» μ„€μ •λœ ν”„λ‘μ‹œμ™€ 같은 것은 큰 λ¬Έμ œμž…λ‹ˆλ‹€. μ΄μƒν•œ 인터넷 λ¬Έμ œμ— λŒ€ν•œ 캐치 콜이기 λ•Œλ¬Έμ— μ‰½κ²Œ ν•΄κ²°ν•  방법이 μ—†μŠ΅λ‹ˆλ‹€.

μ’‹μ•„μš”, @ezfe κ°μ‚¬ν•©λ‹ˆλ‹€. 일뢀 μ‚¬λžŒλ“€μ˜ μƒν™©μ—μ„œλŠ” 정보 λ©”μ‹œμ§€κ°€ λΆ€μ •ν™•ν•˜λ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.

예λ₯Ό λ“€λ©΄ :

λ‚˜λŠ” νŒ¨ν‚€μ§€κ°€ 맀우 ν¬κ±°λ‚˜ λ§Žμ€ νŒŒμΌμ„ 포함 ν•  λ•Œλ§Œ λ°œμƒν•œλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.
μ‹œκ°„ μ œν•œμ΄μ΄λ₯Ό ν™•μΈν•˜λŠ” κ°€μž₯ 쒋은 방법이 아닐 수 μžˆμŠ΅λ‹ˆλ‹€. μ‹œκ°„ μ œν•œμ΄ 초과되면 1kb-test-ping을 μˆ˜ν–‰ ν•  μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. μ‹€νŒ¨ ν•  κ²½μš°μ—λ§Œ μ‹€μ œλ‘œ 재 μ‹œλ„λ₯Ό μˆ˜ν–‰ ν•  수 μžˆμŠ΅λ‹ˆλ‹€. 그렇지 μ•ŠμœΌλ©΄ λͺ¨λ“  것이 정상이며 μ‹œκ°„μ΄ 쑰금 더 κ±Έλ¦½λ‹ˆλ‹€.

λ‚˜λŠ” 같은 λ¬Έμ œκ°€ μžˆμ—ˆλ‹€. μ‹€μ œλ‘œ 슀트리밍 λΉ„λ””μ˜€ ν”„λ‘œμ„ΈμŠ€κ°€ μ‹€ν–‰λ˜λŠ” λ™μ•ˆ λͺ…령을 μ‹€ν–‰ν–ˆμŠ΅λ‹ˆλ‹€ (netflix). κ·Έλž˜μ„œ μž μ‹œ λ©ˆμΆ”κ³  λ‹€μ‹œ μ‹œλ„ν–ˆλŠ”λ° μ‹œκ°„ μ œν•œμ„ λ¬΄ν•œ κ°’μœΌλ‘œ μ„€μ •ν•˜μ§€ μ•Šκ³ λ„ μž‘λ™ν•©λ‹ˆλ‹€.

λ‚˜λŠ” 같은 λ¬Έμ œκ°€ μžˆμ—ˆμ§€λ§Œ λ‚΄ 둜컬 μ €μž₯μ†Œμ—μ„œ node_modules 디렉토리λ₯Ό μ‚­μ œν•  λ•ŒκΉŒμ§€ μ•Œμ•„ 차리지 λͺ»ν–ˆμŠ΅λ‹ˆλ‹€.
그런 λ‹€μŒ λ„€νŠΈμ›Œν¬ 였λ₯˜κ°€ ν‘œμ‹œλ˜κΈ° μ‹œμž‘ν–ˆμŠ΅λ‹ˆλ‹€. λ‚΄ package.json에 νšŒμ‚¬ λ°©ν™”λ²½ λ’€μ—μžˆλŠ” νŒ¨ν‚€μ§€λ₯Ό μ°Έμ‘°ν•˜λŠ” 이전 νŒ¨ν‚€μ§€κ°€ μžˆμ—ˆλ˜ 것 κ°™μŠ΅λ‹ˆλ‹€ (저도 VPN에 μžˆμ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€). λ‚΄ package.jsonμ—μ„œ λ¬Έμ œκ°€λ˜λŠ” νŒ¨ν‚€μ§€λ₯Ό μ‚­μ œν•˜λ©΄ λͺ¨λ“  것이 μ˜¬λ°”λ₯΄κ²Œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” 같은 λ¬Έμ œκ°€ μžˆμ—ˆκ³  λ‚΄ μ†”λ£¨μ…˜μ€ λ…Έλ“œ 버전을 μ—…λ°μ΄νŠΈν•˜κ³  λ¬Έμ œκ°€ μ‚¬λΌμ‘ŒμŠ΅λ‹ˆλ‹€.

또 이거.

verbose 0.942 Performing "GET" request to "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz".
verbose 1.047 Performing "GET" request to "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.3.tgz".
[##########################################################################################] 950/

이 λ§ˆμ§€λ§‰ 두 μš”μ²­μ— 멈 μΆ₯λ‹ˆ λ‹€.

원사 버전-> 1.15.2μ—μ„œλ„μ΄ λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€.

문제λ₯Ό ν•΄κ²°ν•˜κ±°λ‚˜ μ‚¬λžŒλ“€μ—κ²Œ 무엇이 잘λͺ» 될 수 μžˆλŠ”μ§€ μ•Œλ¦¬μ§€ μ•ŠλŠ” ν•œ 문제λ₯Ό λ‹«μ•„μ„œλŠ” μ•ˆλ©λ‹ˆλ‹€.

도컀 이미지λ₯Ό κ΅¬μΆ•ν•˜λŠ” λ™μ•ˆ 싀을 μ‹€ν–‰ν–ˆμœΌλ©° μ–ΈκΈ‰ ν•œ 것과 λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. 도컀 데λͺ¬μ„ λ‹€μ‹œ μ‹œμž‘ν•˜λ©΄ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

rm -rf /Users/xxx/.config/yarn/global/yarn.lock

@xdkaka κ°μ‚¬ν•©λ‹ˆλ‹€, μ €λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€! yarn.lock 였래된 개인 μ €μž₯μ†Œ URL이 μ„€μ •λ˜μ–΄μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

--network-timeout 1000000이 문제λ₯Ό ν•΄κ²°ν–ˆμ§€λ§Œ ν•˜λ‚˜μ˜ νŒ¨ν‚€μ§€ 만 μ„€μΉ˜ν•˜λŠ” 데 였랜 μ‹œκ°„μ΄ κ±Έλ ΈμŠ΅λ‹ˆλ‹€-@ material-ui / icons

제 κ²½μš°μ—λŠ” yarn.lock νŒŒμΌμ„ μ‚­μ œν–ˆμŠ΅λ‹ˆλ‹€. 그러면 잘 μž‘λ™ν•©λ‹ˆλ‹€.

yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/npm/-/npm-6.14.8.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/Users/runner/work/timelapser/timelapser/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Github Actions, MacOS λŸ¬λ„ˆ.

yarn install --network-timeout 1000000
λ‚˜λ₯Ό μœ„ν•΄ νŠΈλ¦­μ„ ν–ˆμŠ΅λ‹ˆκΉŒ?

β‡’  yarn install --network-timeout 1000000
yarn install v1.3.2
[1/4] πŸ”  Resolving packages...
warning react-native > [email protected]: connect 2.x series is deprecated
warning react-native > fbjs-scripts > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "jest-expo > [email protected]" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0".
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
✨  Done in 234.36s.

그것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€! 정말 κ³ λ§ˆμ›Œ

이 였λ₯˜μ— λŒ€ν•΄ "λͺ¨λ“  것에 λ§žλŠ”"해결책은 μ—†λ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€. 제 κ²½μš°μ—λŠ” i5 컴퓨터에 λͺ¨λ“  λ¦¬μ†ŒμŠ€λ₯Ό μ‚¬μš©ν•˜λŠ” cyberark ν”„λ‘œμ„ΈμŠ€κ°€μžˆμ—ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” κ·Έ ν”„λ‘œμ„ΈμŠ€λ₯Ό κ°•μ œ μ’…λ£Œν•˜κ³  였λ₯˜κ°€ μ‚¬λΌμ‘ŒμŠ΅λ‹ˆλ‹€. λ°”μ΄λŸ¬μŠ€ λ°±μ‹ κ³Ό 관련이 μžˆλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€. λ‚˜λŠ” PCλ₯Ό λ‹€μ‹œ μ‹œμž‘ν•  λ•Œ 올 것이라고 ν™•μ‹ ν•©λ‹ˆλ‹€. μ°½λ¬Έμ—μ„œ μΌν•˜λŠ” μ‹œκ°„ λ‚­λΉ„.

도컀 내뢀에 싀을 μ„€μΉ˜ν•˜λ €κ³  ν•  λ•Œ 같은 λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€.

Step 6/10 : COPY package.json yarn.lock ./
 ---> 72e0f798190d
Step 7/10 : RUN yarn --frozen-lockfile --check-files
 ---> Running in de083b1b3bac
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/escape-regexp/-/escape-regexp-0.0.1.tgz: ETIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/usr/src/app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c yarn --frozen-lockfile --check-files' returned a non-zero code: 1
Error: Process completed with exit code 1.
이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰