<p>"νŒ¨ν‚€μ§€λ₯Ό κ°€μ Έμ˜€λŠ” 쀑..." λ™μ•ˆ yarn μ„€μΉ˜κ°€ μ€‘λ‹¨λ©λ‹ˆλ‹€.</p>

에 λ§Œλ“  2016λ…„ 10μ›” 12일  Β·  90μ½”λ©˜νŠΈ  Β·  좜처: yarnpkg/yarn

_κΈ°λŠ₯_을 μš”μ²­ν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ? μ•„λ‹ˆλ©΄ _버그_λ₯Ό λ³΄κ³ ν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ?

벌레

ν˜„μž¬ 행동은 λ¬΄μ—‡μž…λ‹ˆκΉŒ?

yarn install 이 νŒ¨ν‚€μ§€λ₯Ό κ°€μ Έμ˜¬ λ•Œ μ€‘λ‹¨λ˜κ³  원인에 λŒ€ν•œ μΆ”κ°€ 정보λ₯Ό μ œκ³΅ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

ν˜„μž¬ λ™μž‘μ΄ 버그인 경우 μž¬ν˜„ 단계λ₯Ό μ œκ³΅ν•˜μ‹­μ‹œμ˜€.

λ‹€μŒ package.json을 μ‚¬μš©ν•˜μ—¬ μ•„λž˜λ₯Ό μ‹€ν–‰ν•˜μ‹­μ‹œμ˜€.

> yarn cache clean & yarn install

μ˜ˆμƒλ˜λŠ” λ™μž‘μ€ λ¬΄μ—‡μž…λ‹ˆκΉŒ?

μ„€μΉ˜κ°€ 성곡해야 ν•©λ‹ˆλ‹€.

node.js, 원사 및 운영 체제 버전을 μ–ΈκΈ‰ν•˜μ‹­μ‹œμ˜€.

high-priority needs-discussion triaged

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

λ‚˜λŠ” μ‹œλ„

rm yarn.lock
yarn

그것은 λ‚˜λ₯Ό μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€

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

nodejs v6.2.0 x64λ₯Ό μ‚¬μš©ν•˜λŠ” Windows 10μ—μ„œλ„ λ™μΌν•œ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€.

λ§ˆμ§€λ§‰ νŒ¨ν‚€μ§€λ₯Ό κ°€μ Έμ˜¬ λ•Œ 멈μΆ₯λ‹ˆλ‹€.

C:\xxx>yarn
yarn install v0.15.1
info No lockfile found.
warning [email protected]: No license field
[1/4] Resolving packages...
warning wdio-mocha-framework > mocha > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning wdio-mocha-framework > mocha > [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
warning wdio-mocha-framework > mocha > [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
[2/4] Fetching packages...
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 868/869

@sorgloomer λ„΅ 같은 λ™μž‘μž…λ‹ˆλ‹€. μ‹€μ œλ‘œ λ§ˆμ§€λ§‰ νŒ¨ν‚€μ§€μ— 맀달렀 μžˆμŠ΅λ‹ˆλ‹€.

λ™μΌν•œ λ¬Έμ œμ΄μ§€λ§Œ bower.json이 μžˆμŠ΅λ‹ˆλ‹€. 이 경우 λ‚΄ 둜컬 macOSμ—μ„œ μž‘λ™ν•©λ‹ˆλ‹€. (λ³΅μž‘ν•œ https://github.com/yarnpkg/yarn/issues/846 포함)

{
  "name": "jaguar",
  "version": "0.0.0",
  "private": true,
  "dependencies": {
    "bootstrap": "~3.3.5",
    "devicejs": "2ae5c775e35ccc837589e5af34e292c54936778c",
    "jquery": "2.1.3",
    "jquery-transform": "e195b9a7118558bb1141e50b80380ea5f31dffb8",
    "moment": "2.14.1",
    "moment-timezone": "0.5.5",
    "owl-carousel2": "2.0.0-beta.2.4",
    "raven-js": "3.5.1",
    "ua-parser-js": "0.7.10",
    "underscore": "1.8.3",
    "object-fit": "~0.4.2",
    "picturefill": "^3.0.2",
    "jquery-selectBox": "316c77f157cb25c7a6ea36822143ac9d97845067"
  },
  "resolutions": {
    "jquery": "2.1.3"
  }
}

이 파일둜 yarn λ₯Ό μˆ˜ν–‰ν•˜λŠ” CircleCI의 λͺ¨λ“  λΉŒλ“œλŠ” μž κΉλ‹ˆλ‹€.

μ—¬κΈ°μ—μ„œλ„ 같은 λ¬Έμ œμž…λ‹ˆλ‹€.
μœˆλ„μš° 10
λ…Έλ“œ v6.2.0
npm 3.8.9

yarn yarn install v0.15.1 info No lockfile found. warning [email protected]: No license field [1/4] Resolving packages... warning glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue warning gulp.spritesmith > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue warning gulp > vinyl-fs > glob-watcher > gaze > globule > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. warning gulp-imagemin > imagemin-gifsicle > exec-buffer > execa > [email protected]: cross-spawn no longer requires a build toolchain, use it instead! warning gulp.spritesmith > spritesmith > pixelsmith > ndarray-fill > cwise > static-module > through2 > xtend > [email protected]: [2/4] Fetching packages...

μ—¬κΈ°μ„œλ„ 같은 문제
μœˆλ„μš° 10
λ…Έλ“œ v6.2.0
npm 3.8.9
원사@v0.15.1
nvm을 μ‚¬μš©ν•˜μ—¬ λ…Έλ“œ 버전 μ—…λ°μ΄νŠΈ λ˜λŠ” μ„€μΉ˜

그것은 Windows 10μ—μ„œ μž‘λ™ν•©λ‹ˆλ‹€
λ…Έλ“œ 6.7.0
npm v3.10.3
원사@v0.15.1
λ”°λΌμ„œ μΆ©λŒν•˜λŠ” λ…Έλ“œ λ˜λŠ” npm 버전인 것 κ°™μŠ΅λ‹ˆλ‹€.

μš”μ μ€ npm ν΄λΌμ΄μ–ΈνŠΈλ₯Ό λ°©μ •μ‹μ—μ„œ μ œμ™Έν•˜λŠ” 것이라고 μƒκ°ν–ˆμŠ΅λ‹ˆλ‹€.

nodejs v6.7.0으둜 μ—…λ°μ΄νŠΈν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

v6.7μ—μ„œ μž‘μ—… 쀑인 λ…Έλ“œ v4μ—μ„œ 손상됨

λ©ˆμΆ˜λ‹€:

  • λ…Έλ“œ 5.11.1
  • npm 3.8.6
  • λ§₯OS 10.12
  • 원사 0.15.1

screen shot 2016-10-12 at 20 53 47

λ©ˆμΆ˜λ‹€:

  • node v6.7.0
  • windows 10
  • yarn 0.15.1

λ‚΄ μ  ν‚¨μŠ€ 머신은 λ‹€μŒκ³Ό 같은 λ™μΌν•œ hang-on-final-package-install을 보고 μžˆμ—ˆμŠ΅λ‹ˆλ‹€.

  • λ…Έλ“œ v5.11.0
  • μš°λΆ„νˆ¬ 14.04.2 LTS
  • 원사 0.15.1
  • npm 3.10.8

n λ₯Ό 톡해 λ…Έλ“œ 6.8.1둜 μ—…κ·Έλ ˆμ΄λ“œν•˜λ©΄ 마술처럼 λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€. 6.1.0μ—μ„œ λ©ˆμΆ”κ³  6.8.1둜 μ—…κ·Έλ ˆμ΄λ“œν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

(μ—¬κΈ°μ—μ„œλ„ 동일 - λ…Έλ“œ 6.2 -> 6.8 μˆ˜μ •)

CircleCIμ—μ„œ μ‹€νŒ¨:

  • μš°λΆ„νˆ¬ 14.04(μ‹ λ’°ν•  수 있음)
  • λ…Έλ“œ v4.4.6
  • 원사 0.16.1
  • 이 ν™˜κ²½μ—μ„œλŠ” npm이 μ‹€ν–‰λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
  • Cache/node_modulesλŠ” rm -rf node_modules/ && rm -rf ~/.yarn-cache/ && mkdir -p ~/.yarn-cache λ₯Ό 톡해 μ§€μ›Œμ§‘λ‹ˆλ‹€.

특히 개인 git λ¦¬ν¬μ§€ν† λ¦¬μ—μ„œ κ°€μ Έμ˜€λŠ” 일뢀 νŒŒμΌμ—μ„œ μΌκ΄€λ˜κ²Œ μ€‘λ‹¨λ©λ‹ˆλ‹€. νŒŒμΌμ€ λ‹€μ–‘ν•˜μ§€λ§Œ 항상 ν•΄λ‹Ή μ €μž₯μ†Œμž…λ‹ˆλ‹€.

이 λͺ…령은 주어진 ν”„λ‘œμ„ΈμŠ€μ— μ˜ν•΄ μ—΄λ¦° 파일 기술자λ₯Ό λ³΄μ—¬μ€λ‹ˆλ‹€:

$ lsof -p <pid of yarn.js process>
( ... results trimmed ... )
node    19551 ubuntu   24w   REG               0,89     2048  457983 /home/ubuntu/.yarn-cache/npm-our-private-pkg-1.0.0/src/styles/fonts/glyphicon.svg

μ—¬κΈ° CircleCI ν¬λŸΌμ— λ‹€λ₯Έ 정보와 ν•¨κ»˜ κ΄€λ ¨ 문제λ₯Ό μ œμΆœν–ˆμŠ΅λ‹ˆλ‹€. μ•„λ§ˆλ„ 여기에 μžˆλŠ” 것보닀 더 μ€‘μš”ν•˜μ§€ μ•Šμ„ κ²ƒμž…λ‹ˆλ‹€.
https://discuss.circleci.com/t/yarn-install-hangs-and-never-completes-related-to-dash/7664

μ—…λ°μ΄νŠΈ: Node v6.9.1둜 μ—…λ°μ΄νŠΈν•˜λ©΄ μΊμ‹œκ°€ μžˆκ±°λ‚˜ μ—†λŠ” 반볡적인 μž¬κ΅¬μΆ• λ¬Έμ œκ°€ ν•΄κ²°λ©λ‹ˆλ‹€.

λ”°λΌμ„œ 문제 해결사λ₯Ό μœ„ν•΄ μ—¬κΈ°μ—μ„œ 일뢀 데이터λ₯Ό μš”μ•½ν•˜μžλ©΄ λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.
λͺ¨λ“  OS(μ–€ 0.15.1 및 0.16.1 λͺ¨λ‘)에 영ν–₯을 미치며 λ…Έλ“œ 6.2(및 이전)μ—μ„œ μ€‘λ‹¨λ˜κ³  λ…Έλ“œ 6.7(이상)μ—μ„œ μˆ˜μ •λœ κ²ƒμœΌλ‘œ 보이며 쀑간에 보고된 데이터 ν¬μΈνŠΈκ°€ μ—†μŠ΅λ‹ˆλ‹€.

이것은 λ‚˜μ—κ²Œλ„ μΌμ–΄λ‚˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.
μš°λΆ„νˆ¬ 14.04
λ…Έλ“œ 4.4.5
μ–€ 0.16.1

λ‚˜λ„ 그래, μ§œμ¦λ‚˜
μš°λΆ„νˆ¬@16.04
λ…Έλ“œ@6.2.2
ν„Έμ‹€@0.17.8

μ—¬κΈ°μ„œλ„ 같은 문제
μš°λΆ„νˆ¬ 14.04
λ…Έλ“œ v6.0.0
npm 3.8.6
원사@v0.17.8

같은:

OSX: 10.11.6
λ…Έλ“œ: v5.12.0
원사: 0.17.9

λ…Έλ“œ > 6.7μ—μ„œ μž‘λ™

1040/1041μ—μ„œλ„ μ €λ₯Ό μœ„ν•΄ 멈μΆ₯λ‹ˆλ‹€.
μœˆλ„μš° 10
λ…Έλ“œ v6.9.3
μ–€ 0.18.1

방금 이것에 λΆ€λ”ͺμ³€μŠ΅λ‹ˆλ‹€.

λ…Έλ“œ 7.4.0
npm 3.10.9
원사 0.18.1

μ—…λ°μ΄νŠΈ: ~8λΆ„ λ™μ•ˆ κ·ΈλŒ€λ‘œ 두면 κ²°κ΅­...

screen shot 2017-01-10 at 4 16 26 pm

Datapoint: μ €λŠ” 이것을 2일 λ™μ•ˆ μ€‘λ‹¨ν–ˆμŠ΅λ‹ˆλ‹€. ν”„λ‘œμ„ΈμŠ€κ°€ μœ μš©ν•œ μž‘μ—…μ„ μˆ˜ν–‰ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. https://gist.github.com/benlangfeld/24f704753d1564d2db102f972d066008

λ‚΄ 문제λ₯Ό νŒŒμ•…ν–ˆμ§€λ§Œ μ†Œμˆ˜μ˜ μ‚¬λžŒλ“€μ—κ²Œλ§Œ 해당될 수 μžˆμŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” μœˆλ„μš° 10μ—μžˆλ‹€

바닐라 λ§ˆμŠ€μ»€λŠ” μ›μ‚¬μ—μ„œ λ‹€μš΄λ‘œλ“œν•  수 μžˆλ„λ‘ ν¬ν•¨λ˜μ—ˆμ§€λ§Œ, 바닐라 λ§ˆμŠ€μ»€λŠ” 디렉토리 이름이 잘λͺ» μ§€μ •λ˜μ–΄ Windows와 ν˜Έν™˜λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” lagden-vanilla-masker(https://www.npmjs.com/package/lagden-vanilla-masker)λ₯Ό μ‚¬μš©ν•˜λ„λ‘ 쒅속성을 λ³€κ²½ν–ˆμŠ΅λ‹ˆλ‹€.

λ‚΄ λ¬Έμ œλŠ” λ””μŠ€ν¬ 가득 μ°Έ μƒνƒœλ‘œ 판λͺ…λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

λ‚˜λ₯Ό μœ„ν•΄ μΌν•œ 것은 VPN을 λŠλŠ” κ²ƒμ΄μ—ˆμŠ΅λ‹ˆλ‹€.

전에:

Ξ» bundle β†’ Ξ» git develop* β†’ yarn add winston-aws-cloudwatch
yarn add v0.18.1
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: clone git://github.com/realtymaps/ssh2.git /Users/Justin/Library/Caches/Yarn/.tmp/f5257a9a008d54d3956928f15f351a79
Directory: /Users/Justin/Projects/www/MotorTrend/OnDemand/api/assets/bundle
Output:
Cloning into '/Users/Justin/Library/Caches/Yarn/.tmp/f5257a9a008d54d3956928f15f351a79'...
fatal: read error: Operation timed out
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

후에:

Ξ» bundle β†’ Ξ» git develop* β†’ yarn add winston-aws-cloudwatch
yarn add v0.18.1
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning Unmet peer dependency "request@^2.34".
warning Unmet peer dependency "request@^2.34".
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
success Saved 19 new dependencies.
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
└─ [email protected]
✨  Done in 16.95s.
Ξ» bundle β†’ Ξ» git develop* β†’

이미 μ˜€λž«λ™μ•ˆ macOSμ—μ„œ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν•˜μ—¬ "νŒ¨ν‚€μ§€ κ°€μ Έμ˜€κΈ°"μ—μ„œ λ¬΄μž‘μœ„λ‘œ λŠλ €μ§‘λ‹ˆλ‹€. λ‚΄ κ΅¬μ„±μ˜ 경우 평균 2-4뢄이 κ±Έλ¦¬μ§€λ§Œ 두 번 μ‹€ν–‰ν•  λ•Œλ§ˆλ‹€ 35-30뢄이 μ†Œμš”λ©λ‹ˆλ‹€.

npm: 4.0.5
λ…Έλ“œ: 7.4.0
원사: 0.19.1

github 쒅속성을 μΆ”κ°€ν•  λ•Œ travisμ—μ„œ 이 λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

동일성:
OSX 10.12.2
$ λ…Έλ“œ -v
v6.5.0
$ npm -v
3.10.6
$ 원사 --버전
0.17.8

λ‚˜λ₯Ό μœ„ν•΄ "apt-get install yarn" λŒ€μ‹  "npm install -g yarn"을 μ‚¬μš©ν•˜λŠ” μ†”λ£¨μ…˜μ΄ μžˆμ—ˆμŠ΅λ‹ˆλ‹€.

μ—…λ°μ΄νŠΈ: λ‹€μ‹œ μ€‘λ‹¨λ˜μ–΄ npm install이 μ†”λ£¨μ…˜μ΄ μ•„λ‹ˆλ©° λ•Œλ•Œλ‘œ μž‘λ™ν•©λ‹ˆλ‹€. 버전 0.19.0μ—μ„œλŠ” μž‘λ™ν•˜μ§€λ§Œ 0.19.1μ—μ„œλŠ” μž‘λ™ν•˜μ§€ μ•ŠλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

λ‚˜λ₯Ό μœ„ν•΄ 냉동. "npm install -g yarn"μœΌλ‘œλ„ μ‹œλ„ν–ˆμŠ΅λ‹ˆλ‹€. κ³ μ³μ£Όμ„Έμš”!!!

원사 버전:
0.19.1

λ…Έλ“œ 버전:
4.4.6

ν”Œλž«νΌ:
λ¦¬λˆ…μŠ€ x64

λ˜ν•œ npm i -g yarn@latest λ₯Ό 톡해 μ–€ 0.19.1둜 μ—…κ·Έλ ˆμ΄λ“œν•œ ν›„ μ—¬λŸ¬ ν”„λ‘œμ νŠΈ/μ–€ νŒŒμΌμ—μ„œ 이것을 κ²½ν—˜ν•©λ‹ˆλ‹€.

원사 0.19.1
λ…Έλ“œ 6.1.0
λ§₯ OS

λ‚˜λ₯Ό μœ„ν•΄ npm i -g [email protected] λ₯Ό 톡해 λ‹€μš΄κ·Έλ ˆμ΄λ“œν•˜λ©΄ yarn install κ°€ 될 수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€.

이것은 μ΅œκ·Όμ— μ„€μΉ˜ν•œ μŠ€ν…Œμ΄μ§• μ„œλ²„μ—μ„œ λ‚˜μ—κ²Œ μΌμ–΄λ‚˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

원사 0.19.1
λ…Έλ“œ 5.11.1
μš°λΆ„νˆ¬

νŽΈμ§‘: 0.19.0 및 λ…Έλ“œ 5.12.0μ—μ„œ λ™μΌν•œ 문제

νŽΈμ§‘ 2: λ…Έλ“œ 6.9.5둜 μ—…λ°μ΄νŠΈλ˜μ—ˆμœΌλ©° 이제 μž‘λ™ν•©λ‹ˆλ‹€.

νŽΈμ§‘ 3: 원사 0.19.1둜 λ‹€μ‹œ μ—…λ°μ΄νŠΈλ˜μ—ˆμœΌλ©° μ—¬μ „νžˆ μž‘λ™ μ€‘μž…λ‹ˆλ‹€.

λ…Έλ“œ 6.1.0 => 7.2.1 μž‘λ™

μ €μ—κ²Œλ„ μΌμ–΄λ‚¬μŠ΅λ‹ˆλ‹€. λ§ˆμ§€λ§‰ μ’…μ†μ„±μ—μ„œ μ€‘λ‹¨λ©λ‹ˆλ‹€.
λ…Έλ“œ: v5.12.0
원사: v0.20.3
μš°λΆ„νˆ¬ 14.04

FIX: Nodeλ₯Ό μ΅œμ‹  버전(v7.5.0)으둜 μ—…λ°μ΄νŠΈν•˜κ³  μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

μ΅œκ·Όμ— 이 λ¬Έμ œκ°€ λ°œμƒν–ˆλŠ”λ° μ‹€μ œ ν•΄κ²° 방법이 μžˆμŠ΅λ‹ˆκΉŒ?

image

μ•„λ‹ˆμš”. λŒ€κΈ°μ—…μ΄ μ˜€ν”ˆ μ†ŒμŠ€ ν”„λ‘œμ νŠΈλ₯Ό λ§Œλ“€ λ•Œ ν‰μ†Œμ²˜λŸΌ λ¬΄μ‹œλ‹Ήν•˜λŠ” κ²ƒλΏμž…λ‹ˆλ‹€. 그것이 κ·Έλ“€μ—κ²Œ νš¨κ³Όκ°€ μžˆλ‹€λ©΄ λˆ„κ°€ 이런 일이 μΌμ–΄λ‚˜λ“  μƒκ΄€ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

μˆ˜μ •μ— κΈ°μ—¬ν•˜κ±°λ‚˜ ν•˜μ΄ν‚Ή @robclancy

λ‚˜λŠ” κ·Έ 논리λ₯Ό μ’‹μ•„ν•©λ‹ˆλ‹€... λ§Œμ•½ μ˜€ν”ˆ μ†ŒμŠ€λΌλ©΄ λͺ‡ μ‹­μ–΅ λ‹¬λŸ¬ 규λͺ¨μ˜ νšŒμ‚¬κ°€ κ·Έ 뒀에 μžˆλŠ”μ§€λŠ” μ€‘μš”ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. μ‚¬λžŒλ“€μ΄ 제둜 μ‘λ‹΅μœΌλ‘œ κ³„μ†ν•΄μ„œ μ œκΈ°ν•˜λŠ” λ¬Έμ œμ— λŒ€ν•΄ νŒ¬λ³΄μ΄λŠ” λ§Ήλͺ©μ μœΌλ‘œ 그것을 μ˜Ήν˜Έν•  κ²ƒμž…λ‹ˆλ‹€.

각지고 λΆ€μ„œμ§„ λ¬Έμ„œκ°€ λ‹€μ‹œ λ°˜λ³΅λ©λ‹ˆλ‹€.

팬보이 λ‹€λ₯Έ 데 κ°€μ‹­μ‹œμ˜€.

λ‚΄κ°€ JavaScript둜 μž‘μ„±λœ λͺ¨λ“  κ²ƒμ˜ νŒ¬λ³΄μ΄κ°€ 될 수 μžˆλ‹€κ³  μƒκ°ν•œλ‹€λ©΄ 당신은 λ°”λ³΄μž…λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ λ˜λŠ” λ¬Όλ‘  당신은 μ˜λ―ΈμžˆλŠ” 것을 μ œκ³΅ν•˜κΈ° μœ„ν•΄ μ—¬κΈ° 온 것이 μ•„λ‹ˆλΌ νŠΈλ‘€λ§μ„ μœ„ν•΄ 여기에 μžˆμŠ΅λ‹ˆλ‹€. 결과적으둜 이 λ¬Έμ œκ°€ 곧 잠길 κ²ƒμœΌλ‘œ μ˜ˆμƒν•  수 μžˆμŠ΅λ‹ˆλ‹€.

사싀 λ‚˜λŠ” λ‹€λ₯Έ μ‚¬λžŒλ“€κ³Ό λ§ˆμ°¬κ°€μ§€λ‘œ μ§€κΈˆμ―€ μˆ˜μ •μ΄ ν•„μš”ν•˜κ±°λ‚˜ μ΅œμ†Œν•œ 응닡이 μžˆμ–΄μ•Ό ν•˜λŠ” λ¬Έμ œμ— λŒ€ν•΄ λΆˆν‰ν•˜κ³  μžˆμ—ˆμŠ΅λ‹ˆλ‹€. 당신은 μž‘μ€ 팬보이처럼 μΈν„°λ„·μ—μ„œ λˆ„κ΅°κ°€μ™€ λ…ΌμŸν•˜κΈ° μœ„ν•΄ 여기에 μžˆμŠ΅λ‹ˆλ‹€.

이것을 κ³ μΉ˜κ±°λ‚˜ ν•˜μ΄ν‚Ήμ„ ν•˜λŠ” 것은 μ–΄λ–»μŠ΅λ‹ˆκΉŒ?

λ‹€λ₯Έ μ‚¬λžŒλ“€μ€ κ·Έλ…€κ°€ 문제의 잠재적 진행 상황에 λŒ€ν•΄ μ •μ€‘ν•˜κ²Œ μ§ˆλ¬Έν•©λ‹ˆλ‹€. 털싀은 λ‹Ήμ‹ μ—κ²Œ 판맀된 적이 μ—†μœΌλ―€λ‘œ μŠ€μŠ€λ‘œμ—κ²Œ λΆˆν‰μ„ κ³„μ†ν•˜μ‹­μ‹œμ˜€. 당신은 μ˜€ν”ˆ μ†ŒμŠ€λ₯Ό 골치 μ•„ν”„κ²Œ λ§Œλ“œλŠ” "μ € μ‚¬λžŒ"μž…λ‹ˆλ‹€.

μ–Όλ§ˆλ‚˜ 역섀적인가.

당신은 μ΄λŸ¬ν•œ μ˜€ν”ˆ μ†ŒμŠ€ μ˜μ›… 쀑 ν•˜λ‚˜μž…λ‹ˆλ‹€. κ³„μ†ν•΄μ„œ λ§Ήλͺ©μ μœΌλ‘œ λ°©μ–΄ν•  수 μžˆλŠ” λ¬΄μ‹œλ˜λŠ” 또 λ‹€λ₯Έ λ„μ„œκ΄€μ΄ μžˆμ„ 거라고 ν™•μ‹ ν•©λ‹ˆλ‹€. μ˜μ›…μ΄ λ˜μ‹­μ‹œμ˜€. 일을 ν•˜μ„Έμš”.

λ‚˜λŠ” μ „μ μœΌλ‘œ κΈ°μ—¬ν•˜κ³  λ„μšΈ κ²ƒμ΄μ§€λ§Œ μ†ŒμŠ€ μ½”λ“œλ₯Ό μ‚΄νŽ΄λ³΄κ³  μžˆμ—ˆκ³  μ–΄λ””μ„œλΆ€ν„° μ‹œμž‘ν•΄μ•Ό 할지 λ§‰λ§‰ν–ˆμŠ΅λ‹ˆλ‹€.

μ½”λ“œλ‘œ κΈ°μ—¬ν•  수 μžˆλŠ” ν”„λ‘œμ νŠΈκ°€ 있으며 κ·Έ 경둜λ₯Ό μ„ ν˜Έν•˜λŠ” κ²½ν–₯이 μžˆμŠ΅λ‹ˆλ‹€. 문제λ₯Ό 보고할 수 있고 μ½”λ“œλ² μ΄μŠ€μ— λŒ€ν•΄ 더 잘 μ•Œκ³  μžˆλŠ” μ‚¬λžŒμ΄ κ·Όλ³Έ 원인을 μ°ΎλŠ” 데 도움을 쀄 수 있기λ₯Ό λ°”λΌλŠ” λ‹€λ₯Έ ν”„λ‘œμ νŠΈκ°€ μžˆμŠ΅λ‹ˆλ‹€.

이건 ν™•μ‹€νžˆ ν›„μžλ„€μš” γ…Žγ…Ž

예의λ₯Ό μ§€ν‚€μž @benjie @robclancy πŸ₯‡

같은 문제, totalpackagesμ—μ„œ 멈좀 - 1
μš°λΆ„νˆ¬ λ¦¬λˆ…μŠ€ 4.4.0-64-일반 x86_64
λ…Έλ“œ 6.2

@code-by Node 6.8.1 μ΄μƒμœΌλ‘œ μ—…κ·Έλ ˆμ΄λ“œν•˜λ©΄ λŒ€λΆ€λΆ„μ˜(μ „λΆ€λŠ” μ•„λ‹ˆμ§€λ§Œ) 이 λ¬Έμ œκ°€ ν•΄κ²°λ˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€. μ‹œλ„ν•΄λ³΄μ‹­μ‹œμ˜€. 10월에 λ‹€μ‹œ μ—…κ·Έλ ˆμ΄λ“œν•œ μ΄ν›„λ‘œ 문제λ₯Ό λ³Έ 적이 μ—†μŠ΅λ‹ˆλ‹€. Node 7.6은 async/awaitλ₯Ό 기본적으둜 μ§€μ›ν•˜λ―€λ‘œ κ±°λž˜κ°€ 더 λ‹¬μ½€ν•΄μ§‘λ‹ˆλ‹€ πŸ˜‰

자! μƒˆλ‘œμš΄ λ§₯. HomebrewλŠ” λ…Έλ“œμ™€ npm을 μ„€μΉ˜ν–ˆμŠ΅λ‹ˆλ‹€. μ—¬μ „νžˆ λ§ˆμ§€λ§‰ νŒ¨ν‚€μ§€μ—μ„œ 멈μΆ₯λ‹ˆλ‹€.
$ node -v v7.7.1
$ npm -v 4.1.2

μ˜€λžœλ§Œμ΄μ§€λ§Œ package.json에 참쑰된 개인 νŒ¨ν‚€μ§€κ°€ μžˆλŠ” 경우 Macμ—μ„œλ„ 이것을 λ³΄μ•˜μŠ΅λ‹ˆλ‹€. μ€‘λ‹¨λœ κ²ƒμ²˜λŸΌ λ³΄μ΄μ§€λ§Œ μ‹€μ œλ‘œλŠ” ssh에 λŒ€ν•œ 킀체인 μ•”ν˜Έλ₯Ό 묻고 μžˆμŠ΅λ‹ˆλ‹€. λ³΄μ•ˆ μž…λ ₯ 글리프(image )κ°€ 진행λ₯  ν‘œμ‹œμ€„μ˜ 였λ₯Έμͺ½ κ°€μž₯μžλ¦¬μ— λ‚˜νƒ€λ‚˜μ§€λ§Œ μ‹€μ œλ‘œλŠ” 보이지 μ•ŠλŠ” λ™λ£Œμ˜ 터미널에 λ‚˜νƒ€λ‚©λ‹ˆλ‹€. λ‚˜λŠ” μ‹€ν–‰ν•˜μ—¬ κ³ μ • ssh-add -K μ‹€ν–‰ν•˜κΈ° 전에 yarn .

@jdelStrother 그게 ssh-add -K && yarn install κ°€ μž‘λ™ν•˜λ„λ‘ ν•œ λͺ…λ Ήμž…λ‹ˆλ‹€. κ°μ‚¬ν•©λ‹ˆλ‹€.

κ·Έλž˜μ„œ 이것에 λŒ€ν•œ 우리의 λ¬Έμ œλŠ” 우리λ₯Ό μœ„ν•΄ μ§€μ—­μ μœΌλ‘œ μ‚¬λΌμ‘Œμ§€λ§Œ λ‚˜λŠ” μ—¬μ „νžˆ
λ•Œλ•Œλ‘œ 이런 일이 λ°œμƒν•˜κΈ° λ•Œλ¬Έμ— CIμ—μ„œ NPM을 μ‚¬μš©ν•©λ‹ˆλ‹€. λ§ˆμ§€λ§‰ λŒ“κΈ€κ³Ό ν•¨κ»˜
ssh에 λŒ€ν•΄ https 둜 ν™•μΈν•˜κ³  λ³€κ²½ν•˜κΈ°λ‘œ κ²°μ •ν–ˆμŠ΅λ‹ˆλ‹€. 그듀은 단지
곡개 github λ¦¬ν¬μ§€ν† λ¦¬μ΄λ―€λ‘œ sshκ°€ ν•„μš”ν•˜μ§€ μ•Šμ§€λ§Œ sshκ°€ λ³€κ²½λ˜λ©΄ μƒκ°ν–ˆμŠ΅λ‹ˆλ‹€.
ssl의 λ¬Έμ œμ˜€μ„ μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. 그리고 그것듀을 λ°”κΎΈλŠ” 것
λŒ€μ‹  github μ •μ˜λ₯Ό μ‚¬μš©ν•˜μ—¬ 버전과 λ²„μ „μœΌλ‘œ νŒ¨ν‚€μ§€
https URLκ³Ό 첫 번째 싀행이 μ€‘λ‹¨λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

2017λ…„ 3μ›” 3일 κΈˆμš”μΌ μ˜€μ „ 4:30 DouG Molidor [email protected]
썼닀:

@jdelStrother https://github.com/jdelStrother μ˜€μŠ΅λ‹ˆλ‹€! λ‚˜λŠ” 가지고 μžˆμ—ˆλ‹€
개인 νŒ¨ν‚€μ§€ μ°Έμ‘° 및 ssh-add -K && yarn install이 λͺ…λ Ήμž…λ‹ˆλ‹€.
그것이 μž‘λ™ν•˜κ²Œν–ˆμŠ΅λ‹ˆλ‹€. κ°μ‚¬ν•©λ‹ˆλ‹€.

β€”
당신이 μ–ΈκΈ‰λ˜μ—ˆκΈ° λ•Œλ¬Έμ— 이것을 λ°›λŠ” κ²ƒμž…λ‹ˆλ‹€.
이 이메일에 직접 λ‹΅μž₯ν•˜κ³  GitHubμ—μ„œ ν™•μΈν•˜μ„Έμš”.
https://github.com/yarnpkg/yarn/issues/764#issuecomment-283737992 λ˜λŠ” μŒμ†Œκ±°
μŠ€λ ˆλ“œ
https://github.com/notifications/unsubscribe-auth/AA0UF5PKUy1Lx5nlGZF9HMoSIphEG8-Tks5rhwrOgaJpZM4KUM4j
.

Ubuntu 14.04(Trusty) 및 λ…Έλ“œ v6.9.1이 μžˆλŠ” CircleCI의 κ²½μš°μ—λ„ λ™μΌν•©λ‹ˆλ‹€.

https://github.com/yarnpkg/yarn/pull/2950 μ—μ„œ 문제λ₯Ό μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€

λ‚˜λŠ” 그것이 문자 κ·ΈλŒ€λ‘œ ν•œ 쀄 μˆ˜μ •μ΄μ—ˆλŠ”λ° 토둠에 μ–Όλ§ˆλ‚˜ λ§Žμ€ μ‹œκ°„μ„ λ‚­λΉ„ν–ˆλŠ”μ§€ λ†€λžμŠ΅λ‹ˆλ‹€. μ œκ°€ Javascript λ°°κ²½ μΆœμ‹ μ΄ μ•„λ‹ˆλΌλŠ” 점을 κ³ λ €ν•˜λ©΄ λ§μž…λ‹ˆλ‹€.

Node 5.12.0만 μ‚¬μš©ν•˜λŠ” λ™μ•ˆ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. nvm λ₯Ό 톡해 Node 버전 6.9.1둜 μ „ν™˜ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

문제의 원인은 μ§€μ •λ˜μ§€ μ•Šμ€ μ‹œκ°„ 초과이기 λ•Œλ¬Έμ— λ…Έλ“œ λ²„μ „μ˜ 영ν–₯을 받지 μ•Šμ•„μ•Ό ν•©λ‹ˆλ‹€. #2950은 μ‹œκ°„ 초과λ₯Ό μΆ”κ°€ν•©λ‹ˆλ‹€.

λ”°λΌμ„œ νƒ€μž„μ•„μ›ƒμ΄ λ°œμƒν•˜λ©΄ 얀은 λ‹€λ₯Έ μ„œλ²„μ—μ„œ μž¬μ‹œλ„ν•˜κ³  κ°€μ Έμ˜€λ‚˜μš”? 이것이 μ‹œκ°„ μ΄ˆκ³Όκ°€ 정지에 λŒ€ν•œ μˆ˜μ • μ‚¬ν•­μœΌλ‘œ κ°„μ£Όλ˜λŠ” μ΄μœ μž…λ‹ˆκΉŒ?

Yarn은 λ„€νŠΈμ›Œν¬ 였λ₯˜λ‘œ 인해 μ‹€νŒ¨ν•œ λͺ¨λ“  μš”μ²­μ„ μž¬μ‹œλ„ν•©λ‹ˆλ‹€. 이 PR은 Yarn이 νƒ€μž„μ•„μ›ƒ 였λ₯˜λ₯Ό λ„€νŠΈμ›Œν¬ 였λ₯˜λ‘œ κ°„μ£Όν•˜λ„λ‘ ν•©λ‹ˆλ‹€. "λ‹€λ₯Έ μ„œλ²„"λŠ” μ—†μ§€λ§Œ 앱이 ν˜ΈμŠ€νŒ…λ˜λŠ” μœ„μΉ˜(EC2)와 registry.yarkpkg.com μ•žμ˜ CDN μ‚¬μ΄μ˜ μ—°κ²° 였λ₯˜μΈ 경우 λ‹€μŒ μž¬μ‹œλ„μ—μ„œ 더 운이 쒋을 수 μžˆμŠ΅λ‹ˆλ‹€.

λ‚΄ sources.list에 'deb https://dl.yarnpkg.com/debian/stable main'이 μžˆμ„ λ•Œ apt-get μ—…λ°μ΄νŠΈκ°€ μ˜μ›νžˆ 멈μΆ₯λ‹ˆλ‹€.

μ—¬μ „νžˆ yarn v0.23.2 및 nodejs 6.1.0 μžˆμŠ΅λ‹ˆλ‹€. nodejs 6.7.0 μ—…κ·Έλ ˆμ΄λ“œν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

저도 이 λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€:
원사 v.0.23.2
nodejs v.7.9.0

이 λͺ…령을 μ‹œλ„ν•œ ν›„:
원사 의미 체계 UI μΆ”κ°€

2μ‹œκ°„ λ„˜κ²Œ κΈ°λ‹€λ ΈλŠ”λ° μ„€μΉ˜κ°€ μ•ˆλ˜λ„€μš”

λ…Έλ“œ μ—…λ°μ΄νŠΈλ‘œ λŒ€λΆ€λΆ„μ˜ κ²½μš°κ°€ μˆ˜μ •λœ 것 κ°™μŠ΅λ‹ˆλ‹€.
이것을 λ””λ²„κ·Έν•˜λŠ” 데 도움이 λ˜λŠ” 또 λ‹€λ₯Έ 방법은 --verbose ν”Œλž˜κ·Έλ‘œ μ‹€ν–‰ν•˜μ—¬ μ–΄λ–€ μš”μ²­μ΄ μ€‘λ‹¨λ˜μ—ˆλŠ”μ§€ ν™•μΈν•˜λŠ” κ²ƒμž…λ‹ˆλ‹€.
그렇지 μ•ŠμœΌλ©΄ μš°λ¦¬κ°€ μ—¬κΈ°μ„œ 무엇이든 ν•  수 μžˆλŠ”μ§€ ν™•μ‹€ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€

strace λ₯Ό μ‚¬μš©ν•˜μ—¬ μ •ν™•νžˆ 무엇이 κ±Έλ € μžˆλŠ”μ§€ 확인할 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.

같은 문제둜 nvm이 μžˆμ—ˆκ³  μž‘λ™ν•˜λŠ” 버전을 μ°ΎκΈ° μœ„ν•΄ λ…Έλ“œ 버전을 μ „ν™˜ν–ˆμŠ΅λ‹ˆλ‹€.

4.4.6 및 5.12μ—μ„œ μ΄λ™ν–ˆμŠ΅λ‹ˆλ‹€(μ„±κ³΅ν•˜μ§€ μ•ŠμŒ). λ…Έλ“œ 6.7.0이 μž‘λ™ν•˜μ§€λ§Œ λ…Έλ“œ 버전을 μ „ν™˜ν•΄μ•Ό ν•˜λŠ” 경우 νŒ€μ—κ²Œ yarn이 λ“œλ‘­μΈ λŒ€μ²΄ν’ˆμž„μ„ ν™•μ‹ μ‹œν‚€κΈ°κ°€ 더 μ–΄λ ΅μŠ΅λ‹ˆλ‹€.

@jeffshek strace λ…Έλ“œ 4.4.6 λ˜λŠ” 5.12에 싀을 κ³ μ •ν•˜λ €κ³  μ‹œλ„ν•  수 μžˆμŠ΅λ‹ˆκΉŒ? μ΄λŠ” 잠재적으둜 문제λ₯Ό μ°ΎλŠ” 데 도움이 될 수 μžˆμŠ΅λ‹ˆλ‹€.

κ·Έλž˜μ„œ λ…Έλ“œ 6.7둜 μ „ν™˜ν•œ ν›„ μ„€μΉ˜ν•  수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€.

이 문제λ₯Ό μž¬ν˜„ν•˜κΈ° μœ„ν•΄ μ €λŠ” yarn.lock을 μ§€μš°κ³  λͺ¨λ“  node_modulesλ₯Ό μ œκ±°ν•˜κ³  λ…Έλ“œ 4.4.6으둜 μ „ν™˜ν–ˆμŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” μ–»κ³  μžˆμ—ˆλ‹€

yarn install

[2/4] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=6.0".
error Found incompatible module

μ’‹μ•„, 그것은 μΌμ’…μ˜ 진단 κ°€λŠ₯ν•œ λ©”μ‹œμ§€μ²˜λŸΌ λ³΄μž…λ‹ˆλ‹€ ... (이 였λ₯˜ λ©”μ‹œμ§€λŠ” 전체 μ‹œκ°„μ„ 숨기고 μžˆμ—ˆμŠ΅λ‹ˆκΉŒ?)

ν•˜μ§€λ§Œ 이제 yarn install을 μ‹€ν–‰ν•˜λ©΄ λ§ˆλ²•μ²˜λŸΌ ... μž‘λ™ν•©λ‹ˆλ‹€(λ…Έλ“œ 4.4.6). 이제 λ…Έλ“œ 4.4.6μ—μ„œλ„ λͺ‡ μ‹œκ°„ μ „μ—λŠ” μž‘λ™ν•˜μ§€ μ•Šλ˜ λ™μΌν•œ package.json으둜 원사 μ„€μΉ˜λ₯Ό μ •μƒμ μœΌλ‘œ μˆ˜ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” yarn.lock을 μ œκ±°ν•˜κ³  μƒˆλ‘œμš΄ 원사 μ„€μΉ˜λ₯Ό μ™„λ£Œν–ˆμœΌλ©° 계속 μž‘λ™ν•©λ‹ˆλ‹€.

더 λ§Žμ€ 도움을 λ“œλ¦¬κ³  μ‹Άμ§€λ§Œ nvm을 μ‚¬μš©ν•˜μ—¬ 버전 6.7둜 μ „ν™˜ν•œ λ‹€μŒ λ‹€μ‹œ 4.4.6으둜 μ „ν™˜ν•˜λ©΄ 이전 λ¬Έμ œκ°€ μ‚¬λΌμ‘ŒμŠ΅λ‹ˆλ‹€.

μ €λŠ” 원사λ₯Ό 처음 μ ‘ν•©λ‹ˆλ‹€. 처음으둜 μ‹œλ„ν–ˆμŠ΅λ‹ˆλ‹€. yarn install . κ²°κ³Ό: νŒ¨ν‚€μ§€λ₯Ό μ„€μΉ˜ν•˜λŠ” λ™μ•ˆ λ¬΄κΈ°ν•œ μ€‘λ‹¨λ©λ‹ˆλ‹€. (κ΅¬μ²΄μ μœΌλ‘œλŠ” jsesc νŒ¨ν‚€μ§€μ§€λ§Œ μ€‘μš”ν•œμ§€λŠ” ν™•μ‹€ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.)

싀이 λ‚΄ NPM λͺ…령도 λ§μ³€μŠ΅λ‹ˆκΉŒ? o_O "npm clean"은 이제 κ°„λ‹¨ν•œ brew install yarn 및 yarn install 후에 더 이상 μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 이것이 λ‚΄κ°€ ν”„λ‘œμ νŠΈ ν΄λ”μ—μ„œ ν•œ 전뢀이며 이제 λ‚΄ GLOBAL Node λͺ¨λ“ˆμ΄ μ€‘λ‹¨λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μ–€ 버전은 0.24.6μž…λ‹ˆλ‹€.
Node.js 버전은 7.10.0μž…λ‹ˆλ‹€.

Yarn을 μ„€μΉ˜ν•œ μ΄ν›„λ‘œ NodeλŠ” μ™„μ „νžˆ 망가진 κ²ƒμ²˜λŸΌ λ³΄μž…λ‹ˆλ‹€.

_μ—…λ°μ΄νŠΈ: λ§ˆμΉ¨λ‚΄ Node/NPM이 λ‹€μ‹œ μž‘λ™ν•˜κ²Œ λ˜μ—ˆμ§€λ§Œ Yarn은 μ—¬μ „νžˆ β€‹β€‹λ©ˆμΆ₯λ‹ˆλ‹€._

λ‚˜λ₯Ό μœ„ν•΄, 그것은 λ¬΄κΈ°ν•œ μ—¬κΈ°μ—μ„œ 멈μΆ₯λ‹ˆλ‹€:
screen shot 2017-05-26 at 6 21 03 pm

이것은 μ—¬μ „νžˆ ​​지속적인 문제인 것 κ°™μŠ΅λ‹ˆλ‹€. λ‚˜λŠ” λ‹€μŒκ³Ό 같이 μž¬ν˜„ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

원사@v0.19.4
원사@v0.21.3
[email protected]
[email protected]
μ•„λ§ˆμ‘΄ λ¦¬λˆ…μŠ€@2017.03
λ…Έλ“œ@v5.12.0
λ…Έλ“œ@v4.4.6

node@>=6.9.5μ—μ„œ μ„±κ³΅ν•œ κ²ƒμœΌλ‘œ λ³΄μž…λ‹ˆλ‹€.

λ‚΄κ°€ 말할 수 μžˆλŠ” ν•œ, 이 λ¬Έμ œλŠ” git archive μ—μ„œ μƒμ„±λœ tarλ₯Ό μΆ”μΆœν•  λ•Œ 경쟁 쑰건으둜 인해 git repo 쒅속성과 κ΄€λ ¨λœ 것 κ°™μŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” 행동을 λ‚˜νƒ€λ‚΄λŠ” repoλ₯Ό λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€.
https://github.com/andrsnn/yarn-git-dependency-issue

μ§€κΈˆκΉŒμ§€ ~/.yarn/lib-legacy/util/git.js 에 μžˆλŠ” 이 μ½”λ“œλ₯Ό 톡해 문제λ₯Ό μΆ”μ ν–ˆμŠ΅λ‹ˆλ‹€.

_cloneViaLocalFetched(dest) {
    var _this4 = this;

    return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
      yield (_child || _load_child()).spawn('git', ['archive', _this4.hash], {
        cwd: _this4.cwd,
        process: function process(proc, resolve, reject, done) {
          const extractor = tar.Extract({ path: dest });
          extractor.on('error', reject);
          extractor.on('end', done);

          proc.stdout.pipe(extractor);
        }
      });
    })();
}

이 λ‹¨κ³„μ—μ„œ 쒅속성 μ €μž₯μ†Œκ°€ /Users/andrsnn/Library/Caches/Yarn/npm-yarn-dependency-a-1.0.2-fc796525f8a9e3130248520d386f9823502eb6cd 의 λŒ€μƒμœΌλ‘œ μΆ”μΆœλ˜λŠ” tmp 폴더 /Users/andrsnn/Library/Caches/Yarn/.tmp/06cc8c2b5aba0eca42bd03dabc0d87f6 둜 μ„±κ³΅μ μœΌλ‘œ 볡제된 κ²ƒμœΌλ‘œ λ³΄μž…λ‹ˆλ‹€. λ„€νŠΈμ›Œν¬ λ¬Έμ œλŠ” μ•„λ‹Œ 것 κ°™μŠ΅λ‹ˆλ‹€.

λ•Œλ•Œλ‘œ 'end' μ΄λ²€νŠΈλŠ” node-tar λͺ¨λ“ˆμ—μ„œ λ°œμƒν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. git μ’…μ†μ„±μ—μ„œ μž˜λΌλ‚Έ yarn.lock 파일 덩어리λ₯Ό ν¬ν•¨ν•˜λŠ” '데이터' λ°©μΆœμ— 맀달렀 μžˆλŠ” κ²ƒμœΌλ‘œ λ³΄μž…λ‹ˆλ‹€.

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘ 176/177{ '0': 'data',
  '1': <Buffer 30 2e 34 3a 0a 20 20 76 65 72 73 69 6f 6e 20 22 34 2e 30 2e 36 22 0a 20 20 72 65 73 6f 6c 76 65 64 20 22 68 74 74 70 73 3a 2f 2f 72 65 67 69 73 74 72 ... > }
0.4:
  version "4.0.6"
  resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"

lodash.isstring@^4.0.1:
  version "4.0.1"
  resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"

lodash.keys@^3.0.0:
  version "3.1.2"
  resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a"
  dependencies:
    loda

μœ„μ˜ λ‚΄μš©μ„ ν™•μΈν•˜κΈ° μœ„ν•΄ 이벀트 이미터λ₯Ό λž˜ν•‘ν–ˆμŠ΅λ‹ˆλ‹€.

_cloneViaLocalFetched(dest) {
    var _this4 = this;

    return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
      yield (_child || _load_child()).spawn('git', ['archive', _this4.hash], {
        cwd: _this4.cwd,
        process: function process(proc, resolve, reject, done) {
          const extractor = tar.Extract({ path: dest });

          var timeout;
          function log(args) {
            return function() {
              console.log(require('util').inspect(args));
              console.log(args[1].toString());
            };
          }
          function debug(emitter) {
              var originalEmitter = emitter.emit;

              emitter.emit = function() {
                  console.log('eventName', arguments[0]);
                  clearTimeout(timeout);
                  timeout = setTimeout(log(arguments), 20000);
                  originalEmitter.apply(emitter, arguments);
              };
          }

          debug(extractor);
          extractor.on('error', reject);
          extractor.on('end', done);


          proc.stdout.pipe(extractor);
        }
      });
    })();
}

이것은 node-tar 의 λ²„κ·Έμ΄κ±°λ‚˜ μ˜μ‘΄ν•˜λŠ” 쒅속성일 수 μžˆμŠ΅λ‹ˆλ‹€.

λ‹€λ₯Έ μ‚¬λžŒλ“€μ΄ μˆ˜μ • 사항에 λŒ€ν•΄ 밝힐 수 있기λ₯Ό λ°”λžλ‹ˆλ‹€. 이 λ²„κ·Έλ‘œ 인해 CI μ„œλ²„ 및 둜컬 κ°œλ°œμ— 문제λ₯Ό μΌμœΌν‚€λŠ” 데 어렀움을 κ²ͺκ³  μžˆμŠ΅λ‹ˆλ‹€.

μž¬ν˜„ ν…Œμ΄ν”„μ™€ 뢄석에 κ°μ‚¬λ“œλ¦½λ‹ˆλ‹€.
두 번 λ‹€μš΄λ‘œλ“œν•΄μ•Ό ν•˜λŠ” tar λ¬Έμ œκ°€ μžˆμ—ˆκ³  그둜 인해 μ˜ˆμ™Έκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.
μ••μΆ• ν•΄μ œ 쀑.

핡심 νŒ€μ€ λ‹€μŒ μ£Ό λ‚΄λ‚΄ μ•ˆμ •μ„±μ— 쀑점을 λ‘˜ κ²ƒμž…λ‹ˆλ‹€.
0.26 μΆœμ‹œ

2017λ…„ 5μ›” 28일 22:44 andrsnn [email protected]μ—μ„œ λ‹€μŒκ³Ό 같이 μΌμŠ΅λ‹ˆλ‹€.

이것은 μ—¬μ „νžˆ ​​지속적인 문제인 것 κ°™μŠ΅λ‹ˆλ‹€. λ‚˜λŠ” λ‹€μŒκ³Ό 같이 μž¬ν˜„ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

원사@v0.19.4
원사@v0.21.3
[email protected]
[email protected]
μ•„λ§ˆμ‘΄ λ¦¬λˆ…μŠ€@2017.03
λ…Έλ“œ@v5.12.0
λ…Έλ“œ@v4.4.6

node@>=6.9.5μ—μ„œ μ„±κ³΅ν•œ κ²ƒμœΌλ‘œ λ³΄μž…λ‹ˆλ‹€.

λ‚΄κ°€ 말할 μˆ˜μžˆλŠ” ν•œ, λ¬Έμ œλŠ” git repo와 κ΄€λ ¨λœ 것 κ°™μŠ΅λ‹ˆλ‹€.
gitμ—μ„œ μƒμ„±λœ tar μΆ”μΆœ μ‹œ 경쟁 쑰건으둜 μΈν•œ 쒅속성
λ³΄κ΄€μ†Œ .

λ‚˜λŠ” 행동을 λ‚˜νƒ€λ‚΄λŠ” repoλ₯Ό λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€.
https://github.com/andrsnn/yarn-git-dependency-issue

μ§€κΈˆκΉŒμ§€ 이 μ½”λ“œμ— λŒ€ν•œ 문제λ₯Ό μΆ”μ ν–ˆμŠ΅λ‹ˆλ‹€.
~/.yarn/lib-legacy/util/git.js

_cloneViaLocalFetched(λŒ€μƒ) {
var _this4 = 이것;

return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
  yield (_child || _load_child()).spawn('git', ['archive', _this4.hash], {
    cwd: _this4.cwd,
    process: function process(proc, resolve, reject, done) {
      const extractor = tar.Extract({ path: dest });
      extractor.on('error', reject);
      extractor.on('end', done);

      proc.stdout.pipe(extractor);
    }
  });
})();

}

λ•Œλ•Œλ‘œ 'end' μ΄λ²€νŠΈλŠ” node-tar λͺ¨λ“ˆμ—μ„œ λ°œμƒν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. 그것
잘린 청크λ₯Ό ν¬ν•¨ν•˜λŠ” '데이터' λ°©μΆœμ— μ€‘λ‹¨λœ κ²ƒμœΌλ‘œ λ³΄μž…λ‹ˆλ‹€.
git μ’…μ†μ„±μ—μ„œ yarn.lock νŒŒμΌμ„ κ°€μ Έμ˜΅λ‹ˆλ‹€.

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘ 176/177{ '0': '데이터',
'1': 0.4:
버전 "4.0.6"
ν•΄κ²° " https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb "

lodash.isstring@^4.0.1:
버전 "4.0.1"
ν•΄κ²° " https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451 "

lodash.keys@^3.0.0:
버전 "3.1.2"
ν•΄κ²° " https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a "
쒅속성:
λ‘œλ‹€

μœ„μ˜ λ‚΄μš©μ„ ν™•μΈν•˜κΈ° μœ„ν•΄ 이벀트 이미터λ₯Ό λž˜ν•‘ν–ˆμŠ΅λ‹ˆλ‹€.

_cloneViaLocalFetched(λŒ€μƒ) {
var _this4 = 이것;

return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
  yield (_child || _load_child()).spawn('git', ['archive', _this4.hash], {
    cwd: _this4.cwd,
    process: function process(proc, resolve, reject, done) {
      const extractor = tar.Extract({ path: dest });

      var timeout;
      function log(args) {
        return function() {
          console.log(require('util').inspect(args));
          console.log(args[1].toString());
        };
      }
      function debug(emitter) {
          var originalEmitter = emitter.emit;

          emitter.emit = function() {
              console.log('eventName', arguments[0]);
              clearTimeout(timeout);
              timeout = setTimeout(log(arguments), 20000);
              originalEmitter.apply(emitter, arguments);
          };
      }

      debug(extractor);
      extractor.on('error', reject);
      extractor.on('end', done);


      proc.stdout.pipe(extractor);
    }
  });
})();

}

이것은 node-tar의 λ²„κ·Έμ΄κ±°λ‚˜ μ˜μ‘΄ν•˜λŠ” 쒅속성일 수 μžˆμŠ΅λ‹ˆλ‹€.

λ‹€λ₯Έ μ‚¬λžŒλ“€μ΄ μˆ˜μ • 사항에 λŒ€ν•΄ 밝힐 수 있기λ₯Ό λ°”λžλ‹ˆλ‹€. 어렀움을 κ²ͺμ—ˆλ‹€
이 λ²„κ·Έλ‘œ 인해 CI μ„œλ²„ 및 둜컬 κ°œλ°œμ— λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

β€”
μ—΄κΈ°/λ‹«κΈ° μƒνƒœλ₯Ό μˆ˜μ •ν–ˆκΈ° λ•Œλ¬Έμ— 이 λ©”μ‹œμ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.
이 이메일에 직접 λ‹΅μž₯ν•˜κ³  GitHubμ—μ„œ ν™•μΈν•˜μ„Έμš”.
https://github.com/yarnpkg/yarn/issues/764#issuecomment-304542314 λ˜λŠ” μŒμ†Œκ±°
μŠ€λ ˆλ“œ
https://github.com/notifications/unsubscribe-auth/ACBdWLWEI3Aui9XTLxl7ISk-OaXSQLL0ks5r-eqlgaJpZM4KUM4j
.

원사λ₯Ό μ—…λ°μ΄νŠΈν•œ ν›„ μ§€λ‚œ λͺ‡ μ£Ό λ™μ•ˆ 이 λ¬Έμ œκ°€ λ°œμƒν–ˆμœΌλ©° 6.2.0 μ—μ„œ 6.9.0 둜 λ…Έλ“œ 버전을 λ²”ν”„ν•˜μ—¬ κ²°κ΅­ μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€. 이것이 λ‹€λ₯Έ μ‚¬λžŒλ“€μ„ 돕기λ₯Ό λ°”λžλ‹ˆλ‹€.

같은 문제. "νŒ¨ν‚€μ§€ κ°€μ Έμ˜€κΈ°" 쀑 λ§ˆμ§€λ§‰ νŒ¨ν‚€μ§€μ—μ„œ λ©ˆμ·„μŠ΅λ‹ˆλ‹€. λͺ¨λ“  ν”„λ‘œμ νŠΈμ—μ„œ λ°œμƒν•˜λŠ” 것은 μ•„λ‹ˆμ§€λ§Œ λŒ€λΆ€λΆ„μ˜ ν”„λ‘œμ νŠΈμ—μ„œ 이 λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. μ–΄μ œ μ‹œμŠ€ν…œμ„ λ‹€μ‹œ μ„€μΉ˜ν–ˆμœΌλ―€λ‘œ 이전 λ²„μ „μ—λŠ” 이 λ¬Έμ œκ°€ μ—†μ—ˆκ±°λ‚˜ 엉망인 νŒ¨ν‚€μ§€κ°€ 이미 μΊμ‹œλ˜μ—ˆκ±°λ‚˜ 무엇이든 될 수 μžˆμŠ΅λ‹ˆλ‹€.

원사 버전: v0.24.6
λ…Έλ“œ 버전: v8.0.0, v7.10.0, v7.9.0을 μ‹œλ„ν–ˆμ§€λ§Œ 아무 것도 μž‘λ™ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.
운영 체제: macOS 10.12.5

더 λ§Žμ€ λ²„μ „μ˜ λ…Έλ“œλ₯Ό μ‹œλ„ν•˜κΈ° μœ„ν•΄ brewλ₯Ό 톡해 μ„€μΉ˜λœ Yarn, nvm을 톡해 λ…Έλ“œ.

// νŽΈμ§‘ν•˜λ‹€
ssh-agent μ•”ν˜Έλ₯Ό μž…λ ₯ν•˜λΌλŠ” λ©”μ‹œμ§€κ°€ ν‘œμ‹œλ˜κ³  이λ₯Ό μ‚ΌμΌ°μŠ΅λ‹ˆλ‹€. Enter ν‚€λ₯Ό λˆ„λ₯΄λ©΄ "잘λͺ»λœ μ•”ν˜Έλ₯Ό μž…λ ₯ν–ˆμŠ΅λ‹ˆλ‹€"λΌλŠ” μ§ˆλ¬Έμ„ λ‹€μ‹œ λ³Ό 수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€.

@vass-david의 μ΅œμ‹  νŽΈμ§‘ λ‚΄μš©, μ—¬μ „νžˆ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆκΉŒ?
@andrsnn - Node 4.8, Node 6.10, Node 7, Node 8 및 yarn 0.24, 0.25, master의 λ‹€μ–‘ν•œ 쑰합을 μ‚¬μš©ν•˜μ—¬ κ·€ν•˜μ˜ μ €μž₯μ†Œ 문제λ₯Ό μž¬ν˜„ν•˜λ €κ³  μ‹œλ„ν–ˆμŠ΅λ‹ˆλ‹€. 문제λ₯Ό μž¬ν˜„ν•  수 μ—†μŠ΅λ‹ˆλ‹€. 더 이상 μ—†λŠ”μ§€ 확인할 수 μžˆμŠ΅λ‹ˆκΉŒ?

@ vass -david strace λ₯Ό μ‚¬μš©ν•˜μ—¬ μ •ν™•νžˆ 무엇이 λ§‰ν˜”λŠ”μ§€ μ•Œμ•„λ‚Ό 수 μžˆμŠ΅λ‹ˆκΉŒ? λ‹€μŒ 은 μ‚¬μš© 방법에 λŒ€ν•œ ν›Œλ₯­ν•œ μ„€λͺ…μ„œμž…λ‹ˆλ‹€.

@BYK μ•„λ‹ˆμš”. 이제 λ¬Έμ œκ°€ 무엇인지 μ΄ν•΄ν•˜κ³  ssh에 λŒ€ν•œ μ•”ν˜Έλ₯Ό μž…λ ₯ν•˜κΈ°λ§Œ ν•˜λ©΄ λ©λ‹ˆλ‹€. λ°˜λ©΄μ— 이 ν”„λ‘¬ν”„νŠΈ λ©”μ‹œμ§€λ₯Ό μ‚ΌμΌœμ„œλŠ” μ•ˆ λ˜λ―€λ‘œ μ‚¬μš©μžκ°€ 이λ₯Ό μΈμ‹ν•˜μ§€ λͺ»ν•˜λ©΄ 그런 일이 λ°œμƒν–ˆλŠ”μ§€ κ²°μ½” 깨닫지 λͺ»ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
@kirs μ§€κΈˆ λ¬Έμ œκ°€ 무엇인지 μ•Œλ”λΌλ„ μ—¬μ „νžˆ 이것이 ν•„μš”ν•©λ‹ˆκΉŒ?

@kirs Mine은 원사λ₯Ό μ—…λ°μ΄νŠΈν•œ μ΄ν›„λ‘œ μž‘λ™ν•©λ‹ˆλ‹€.

같은 λ¬Έμ œκ°€μžˆμ—ˆμŠ΅λ‹ˆλ‹€. μ‚­μ œ node_modules 폴더λ₯Ό μ™„μ „νžˆ λ‹€μ‹œ μ‹€ν–‰ yarn λ‚˜λ₯Ό μœ„ν•΄ μΌν•œ!

λ‚˜λŠ” μ‹œλ„

rm yarn.lock
yarn

그것은 λ‚˜λ₯Ό μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€

dockerμ—μ„œ node 7.10.0 및 yarn v0.24.6 에 λ¬Έμ œκ°€ μžˆμ—ˆμ§€λ§Œ node_modules 폴더가 μ‹€μˆ˜λ‘œ ν‘Έμ‹œλ˜μ—ˆμŒμ„ κΉ¨λ‹¬μ•˜μŠ΅λ‹ˆλ‹€. node_modules 폴더와 yarn clear cache ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

이것은 큰 νŒ¨ν‚€μ§€μ—μ„œ λ°œμƒν•©λ‹ˆλ‹€. νŠΉμ • 크기에 λŒ€ν•΄ κ²½κ³ κ°€ ν‘œμ‹œλ˜λ©΄ 쒋을 수 μžˆμŠ΅λ‹ˆλ‹€.

λ‚˜λŠ” 같은 λ¬Έμ œκ°€ μžˆμ—ˆλ‹€. λ…Έλ“œμ™€μ˜ 버전 좩돌이라고 μƒκ°ν•©λ‹ˆλ‹€. λ‚΄ ν”„λ‘œμ νŠΈλŠ” v81.2λ₯Ό μ‚¬μš©ν•˜κ³  μžˆμ—ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” λ‹¨μˆœνžˆ μ˜¬λ°”λ₯Έ λ²„μ „μœΌλ‘œ μ „ν™˜ν–ˆκ³  싀이 λ©ˆμΆ”μ—ˆμŠ΅λ‹ˆλ‹€.
nvm use v7.4

v1.9.4μ—μ„œλ„ μ—¬μ „νžˆ 이 λ¬Έμ œκ°€ μžˆμ§€λ§Œ #5055와 λ™μΌν•©λ‹ˆλ‹€.

같은 λ¬Έμ œκ°€ μžˆμ—ˆμŠ΅λ‹ˆλ‹€.
OS: OSX 10.14.1(λͺ¨ν•˜λΉ„)
λ…Έλ“œ: 10.9.0
원사: 1.12.3

μ•„λ§ˆλ„ μ†μƒλœ yarn.lock 파일인 것 κ°™μŠ΅λ‹ˆλ‹€. λ‹€μŒμ„ μˆ˜ν–‰ν•˜λ©΄ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

yarn cache clean
rm yarn.lock
rm - r node_modules

yarn

같은 문제

OS: OSX 10.14.1(λͺ¨ν•˜λΉ„)
λ…Έλ“œ: 12.3.1
원사: 1.16.0

λ‹€λ₯Έ λ„€νŠΈμ›Œν¬(ν•«μŠ€νŒŸ)둜 μ „ν™˜ν•˜μ—¬ ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€. 사무싀 λ„€νŠΈμ›Œν¬ 방화벽에 λͺ‡ 가지 μ œν•œ 사항이 μžˆμ—ˆλ˜ 것 κ°™μŠ΅λ‹ˆλ‹€.

같은 문제

OS μœˆλ„μš° 10

λ‚΄ ν•΄κ²°: λ§ˆλ”λ³΄λ“œ λ“œλΌμ΄λ²„ μ—…λ°μ΄νŠΈ

같은 λ¬Έμ œκ°€ μžˆμ—ˆμŠ΅λ‹ˆλ‹€.
운영 체제: μš°λΆ„νˆ¬ 18.04
λ…Έλ“œ: v8.10.0
원사: 1.17.3

λ‹€μŒμ„ μˆ˜ν–‰ν•˜μ—¬ ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€.
yarn cache clean

λ‹€μ‹œ μ„€μΉ˜ λͺ…령을 μ‹œλ„ν•˜κ³  μž‘λ™ν•©λ‹ˆλ‹€. ν”„λ‘œμ„ΈμŠ€λ₯Ό μ™„λ£Œν•˜λŠ” 데 λͺ‡ 뢄이 κ±Έλ¦¬λ―€λ‘œ 인내심을 κ°–κ³  μž‘λ™ν•  κ²ƒμž…λ‹ˆλ‹€. 제 κ²½μš°μ—λŠ” ν”„λ‘œμ„ΈμŠ€λ₯Ό μ™„λ£Œν•˜λŠ” 데 10뢄이 κ±Έλ ΈμŠ΅λ‹ˆλ‹€(인터넷 속도에 따라 닀름).

원사λ₯Ό μ—…λ°μ΄νŠΈν•΄λ„ 도움이 λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. 제 κ²½μš°μ—λŠ” νŒ¨ν‚€μ§€ 쀑 ν•˜λ‚˜κ°€ λ„ˆλ¬΄ μ»€μ„œ μ‹œκ°„ 초과 전에 λ‹€μš΄λ‘œλ“œν•  수 μ—†μ—ˆμŠ΅λ‹ˆλ‹€.

μ†”λ£¨μ…˜μ€ λ‹€μŒμ„ μ‚¬μš©ν•˜μ—¬ μ„€μΉ˜ν•˜λŠ” κ²ƒμž…λ‹ˆλ‹€.
yarn install --network-timeout 100000

λ˜λŠ” ν”„λ‘œμ νŠΈμ— .yarnrc νŒŒμΌμ„ μΆ”κ°€ν•˜κ³  λ‹€μŒκ³Ό 같이 λ„£μŠ΅λ‹ˆλ‹€.
network-timeout 500000

μ—¬κΈ°μ—μ„œ 동일:

yarn install v1.22.4
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...
[###############################################################################################] 1908/1909
System:
    OS: macOS 10.15.3
    CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
    Memory: 192.86 MB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
    Yarn: 1.22.4 - ~/Documents/youpendo-app-bareworkflow/node_modules/.bin/yarn
    npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 28, 29
      Build Tools: 28.0.3, 29.0.2
      System Images: android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6392135
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_232 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: ^4.8.0 => 4.9.0
    react: 16.11.0 => 16.11.0
    react-native: 0.62.2 => 0.62.2
  npmGlobalPackages:
    *react-native*: Not Found

같은 문제!
이게 μ™œ λ‹«ν˜€μžˆμ§€?

원사@1.22.4
Node.js v12.18.2.

이 리포지토리에 λŒ€ν•΄ 싀행됨:
https://github.com/metabase/metabase

μœˆλ„μš° 10

κ°„λ‹¨νžˆ λ§ν•΄μ„œ VPN을 ν™•μΈν•˜μ‹­μ‹œμ˜€. μ—°κ²°λ˜μ–΄ μžˆμŠ΅λ‹ˆκΉŒ?

λ™λ£Œμ™€ λ‚˜λŠ” λ™μΌν•œ 문제λ₯Ό λ””λ²„κΉ…ν•˜κ³  μžˆμ—ˆμŠ΅λ‹ˆλ‹€. μ–΄λ–€ νŒ¨ν‚€μ§€κ°€ ν™•μ‹€ν•˜μ§€ μ•Šμ§€λ§Œ νŠΉμ • νŒ¨ν‚€μ§€μ—μ„œ 멈좜 κ²ƒμž…λ‹ˆλ‹€.

기본적으둜 κ·Έ μ‚¬λžŒμ€ 더 일찍 컴퓨터λ₯Ό λ‹€μ‹œ μ‹œμž‘ν–ˆκ³  백업을 μ‹œμž‘ν•  λ•Œ VPN에 λŒ€ν•œ μƒˆ μ•”ν˜Έλ„ μ„€μ •ν•΄μ•Ό ν–ˆμŠ΅λ‹ˆλ‹€. λ”°λΌμ„œ VPN은 μžλ™μœΌλ‘œ λ‹€μ‹œ μ—°κ²°λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. "원사 문제"μ˜€κΈ° λ•Œλ¬Έμ— VPN에 λŒ€ν•΄μ„œλŠ” λ³„λ‘œ μƒκ°ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ μš°λ¦¬λŠ” λͺ‡ 가지 νŒ¨ν‚€μ§€κ°€ μžˆλŠ” νšŒμ‚¬ 리포지토리λ₯Ό 가지고 있으며 그것이 κ±Έλ € μžˆλŠ” κ³³μž…λ‹ˆλ‹€. :/

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰