κΈ°λ₯ μ μμ²νκ±°λ λ²κ·Έλ₯Ό λ³΄κ³ νμκ² μ΅λκΉ?
λ²λ
νμ¬ νλμ 무μμ λκΉ?
ν:
yarn add jest
λ₯Ό μ€ννλ €κ³ νλ©΄ λ€μ μ€λ₯κ° λ°μν©λλ€.
β yarn add jest
yarn add v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] β’ fsevents: 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
[-/1] β’ waiting...
[-/1] β’ waiting...
[-/1] β’ waiting...
warning Error running install script for optional dependency: "/Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: sh\nArguments: -c node install\nDirectory: /Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at emitOne (events.js:115:13)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:195:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:366:16)\nnode-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:102:11)\nnode-pre-gyp ERR! stack at process._tickCallback (internasuccess Saved lockfile.
success Saved 1 new dependency.
ββ [email protected]
Done in 12.29s.
κ·Έλ° λ€μ yarn ν μ€νΈ(jestμ λ³μΉ)λ₯Ό μ€ννλ©΄ λ€μ μ€λ₯κ° λ°μν©λλ€.
yarn test v0.27.5
$ jest
TypeError: projects.map is not a function
at Object.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:112:28)
at Generator.next (<anonymous>)
at step (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:1:260)
at /Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:1:490
at Promise (<anonymous>)
at Object.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:1:171)
at Object.module.exports [as runCLI] (/Users/Ystartsev/Work/temp/debugger.html/node_modules/jest-cli/build/cli/runCLI.js:139:50)
at Object.run (/Users/Ystartsev/Work/temp/debugger.html/node_modules/devtools-source-map/node_modules/jest-cli/build/cli/index.js:42:17)
at Object.<anonymous> (/Users/Ystartsev/Work/temp/debugger.html/node_modules/devtools-source-map/node_modules/jest-cli/bin/jest.js:16:25)
at Module._compile (module.js:569:30)
error Command failed with exit code 1.
μ΄κ²μ https://github.com/devtools-html/debugger.htmlμμ μΌμ΄λκ³ μμ΅λλ€.
μμλλ λμμ 무μμ
λκΉ?
λλ΄λ³΄λ€ μ€μΉνκ³ μ€νν©λλ€.
node.js, μμ¬ λ° μ΄μ 체μ λ²μ μ μΈκΈνμμμ€.
mac OS Sierra
node version: 8.1.5 (tried on other versions, same issue)
yarn version: 0.27.5
μ΄κ²μ μμ¬ λ¬Έμ κ° μλλΌ fseventμ μ΄μ λ²μ μ λ°λ₯Έ νμ μ’ μμ± λ¬Έμ μ λλ€.
node.js 8μ©μΌλ‘ 미리 μ»΄νμΌλ λ°μ΄λλ¦¬κ° μλ 첫 λ²μ§Έ λ²μ μΈ v1.1.2λ‘ μ κ·Έλ μ΄λνμΈμ.
https://github.com/strongloop/fsevents/issues/181
κ°μ¬ ν΄μ!
ν , νμ§λ§ μ΄κ²μ μ΄μ λ²μ μ μμ¬μ npmμμ μλν©λλ€.
ν κ°μ§ λ μ°Έκ³ : μ΄κ²μ yarn 0.24.xμμ μλν©λλ€.
μ¬κΈ°μμ μ¬νν μ μμ΅λλ€. yarn add [email protected]
λ 0.28.1 / λ
Έλ 8.1.3μμ μ μλν©λλ€.
μμ¬ 0.27.5μ λ
Έλ 8.1.4κ° μμ΅λλ€(μ΅μ λ²μ λͺ¨λ brew
μμ μ€μΉν μ μμ). λν λ€μμ μλν λ 404λ₯Ό μ»μ΅λλ€.
yarn add [email protected]
Mac OS Sierra 10.12.5μμ μ€ν
μ λ λ°μ±νλλ° μ€ν¨νμ΅λλ€. λ Έλ 6κ³Ό λ Έλ 8 λͺ¨λμμ λΉ μΊμλ‘ μλνμ΅λλ€.
@hequ @codehag μ¬μ© κ°λ₯ν μ΅μ μμ¬λ‘ μλν΄ λ³Ό μ μμ΅λκΉ?
yarn init
λ‘ μλ‘μ΄ λΉ μμ¬ νλ‘μ νΈλ₯Ό λ§λ€κ³ yarn cache clean
μΊμλ₯Ό μ§μ΄ λ€μ yarn add [email protected]
μ€μΉλ₯Ό μλνμ΅λλ€. μ΄λ€μ λ
Έλ 8.1.4 λ° μ 0.27.5μμ μ€νλμμ΅λλ€.
λλ μ΄κ²μ μμ¬ 0.28.1λ‘ μλνκ³ λκ°μ μ€λ₯κ° λ°μνμ΅λλ€.
hequ @ MacBook-Pro ~/Projects/omat/yarn
ββ $ βΆ yarn add [email protected]
yarn add v0.28.1
info No lockfile found.
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
[4/4] π Building fresh packages...
[1/1] β fsevents: GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
[-/1] β waiting...
[-/1] β waiting...
[-/1] β waiting...
error /Users/hequ/Projects/omat/yarn/node_modules/fsevents: Command failed.
Exit code: 1
Command: sh
Arguments: -c node install
Directory: /Users/hequ/Projects/omat/yarn/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp info check checked for "/Users/hequ/Projects/omat/yarn/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/hequ/Projects/omat/yarn/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack at emitOne (events.js:115:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:195:12)
node-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:366:16)
node-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:102:11)
node-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:161:9)
node-pre-gyp ERR! System Darwin 16.6.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/8.1.4/bin/node" "/Users/hequ/Projects/omat/yarn/node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/hequ/Projects/omat/yarn/node_modules/fsevents
node-pre-gyp ERR! node -v v8.1.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.33
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
tarballμ΄ μλ κ² κ°μ΅λλ€.
hequ @ MacBook-Pro ~/Projects/omat/yarn
ββ $ βΆ wget https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
--2017-07-18 13:21:30-- https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
Resolving fsevents-binaries.s3-us-west-2.amazonaws.com... 52.218.192.81
Connecting to fsevents-binaries.s3-us-west-2.amazonaws.com|52.218.192.81|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-07-18 13:21:31 ERROR 404: Not Found.
μ, νμΌμ΄ μ‘΄μ¬νμ§ μλ κ² κ°μ΅λλ€. μ΄κ²μ΄ Yarnμ μ€λ₯μΈμ§ fseventμ μ€λ₯μΈμ§ node-gypμ μ€λ₯μΈμ§ νμ€νμ§ μμ΅λλ€.
μ, κ·Έλ. fsevents github νμ΄μ§μμ ν΄λΉ λ¬Έμ λ₯Ό μ°Ύμμ΅λλ€. λ°λΌμ 1.1.1 미리 μ»΄νμΌλ λ²μ μ s3μ μμ§λ§ 1.1.2μλ μμ΅λλ€.
https://github.com/strongloop/fsevents/issues/181
yarn add [email protected]
μλνλ©΄ μμλλ‘ μλν©λλ€.
@hequλ, κ°μ¬ν©λλ€. κ·Έλ° λ€μ λ¬Έμ λ₯Ό λ«μ΅λλ€. λ€μ μ΄μ΄μΌ νλ€λ©΄ LMK.
μλ , λλ μ΄κ²μ΄ λ«νμλ μλλ€κ³ μκ°νλ€.
λ€λ₯Έ λ²μ μ μμ¬μμ μλνλ κ²
yarn add jest
μμ¬ 0.27.5μμ μλνμ§ μλ κ²
yarn add jest
μ΄κ²μ΄ μμ£Ό μ¬μ©λλ λΌμ΄λΈλ¬λ¦¬λΌλ μ μ κ°μν λ μ¬κΈ°μ λκ°κ° μλ€κ³ μκ°ν©λλ€.
fseventsλ νΉμ λ²μ (μ: 1.1.2)μ μ¬μ©νλ κ²½μ° μ¬λ°λ₯΄κ² μ€μΉν μ μμ§λ§ μ΄μ μλ μλνμ§λ§ μλμ μ€μ§νλλ‘ yarnμμ 무μΈκ°κ° λ³κ²½λμμ΅λλ€.
λν μμμ μΈκΈν λ°μ κ°μ΄ yarn add [email protected]
λ yarn 0.28 λ° 0.24μμ μλνλ―λ‘ λ¬΄μΈκ°κ° μλνλλ‘ μμ /μ¬μ©λμμ§λ§ νμ¬ brewμμ μ¬μ©ν μ μλ κ²μ μμλλ‘ μ€μΉλμ§ μμ΅λλ€.
@codehag μ μ΄λ λ΄ μ»΄ν¨ν°μμλ yarn 0.27.4μμλ 404 μ€λ₯κ° λ°μνλ―λ‘ [email protected]
λ₯Ό μ€μΉν΄λ 0.27.4 λλ 0.27.5μμ μλνμ§ μμ΅λλ€.
@codehag μ΄κ²μ fsevents
λ¬Έμ μ²λΌ 보μ
λλ€. μ΄λ₯Ό μννκΈ° μν΄ Yarn μΈ‘μμ κΈ°λνλ λ°λ 무μμ
λκΉ?
ν μλμ€, μμ¬μ ν λ²μ μμ λ€μ λ²μ μΌλ‘ μΌμ΄ μ λλ‘ μλν κ²μΌλ‘ κΈ°λν©λλ€./
λ°©κΈ 0.24λ‘ λ€μ μλνμ΅λλ€. μλ§λ λΉμ μ΄ μ³μκ³ λ μ΄μ μλνμ§ μκΈ° λλ¬Έμ 무μΈκ°κ° λ³κ²½λμμ κ²μ λλ€. λΆννλ λ μ΄μ μ‘°μ¬ν μκ°μ΄ μμ΅λλ€. μκ° λ΄ μ€μ κ³ λ§μ.
ν μλμ€, μμ¬μ ν λ²μ μμ λ€μ λ²μ μΌλ‘ μΌμ΄ μ λλ‘ μλν κ²μΌλ‘ κΈ°λν©λλ€./
κ·Έκ²μ΄ μ°λ¦¬μ κΈ°λμ΄μ λͺ©νμ΄κΈ°λ ν©λλ€! π
λ°©κΈ 0.24λ‘ λ€μ μλνμ΅λλ€. μλ§λ λΉμ μ΄ μ³μκ³ λ μ΄μ μλνμ§ μκΈ° λλ¬Έμ 무μΈκ°κ° λ³κ²½λμμ κ²μ λλ€. λΆννλ λ μ΄μ μ‘°μ¬ν μκ°μ΄ μμ΅λλ€. μκ° λ΄ μ€μ κ³ λ§μ.
yarn
μ fsevents
κ° μλ‘ κ°κΉκ² μ λ²μ μ μΆμνκΈ° λλ¬Έμ fsevents
' λΆλΆμ μ€λ₯λ₯Ό Yarnμ νμΌλ‘ λ리λ κ²μ μ΄ν΄ν λ§ν©λλ€. hequμ μ견μ μ½κ³ [email protected]
νλ©΄ λ¬Έμ κ° ν΄κ²°λλμ§ νμΈνμμμ€.
μ΄κ²μ΄ Yarn λ¬Έμ μΈ μ΄μ μ λν΄ μ΄μΌκΈ°ν κ²μ΄λΌκ³ μκ°νμ΅λλ€. yarn add [email protected]
λ μ¬μ ν S3μμ 1.1.1 λ²μ μ λ€μ΄λ‘λνλ €κ³ μλνλ κ² κ°μ΅λλ€. yarn cache clean
λ‘λ λ¬Έμ κ° ν΄κ²°λμ§ μμ΅λλ€.
λ€μμ μΆλ ₯ μμ λλ€.
[18:22:17] Miles:build-tool-config > yarn add [email protected]
yarn add v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] β fsevents: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
[-/1] β waiting...
[-/1] β waiting...
[-/1] β waiting...
warning Error running install script for optional dependency: "/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: sh\nArguments: -c node install\nDirectory: /Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at emitOne (events.js:115:13)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:374:16)\nnode-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:138:11)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:180:9)\nnode-pre-gyp ERR! System Darwin 16.6.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/8.2.1/bin/node\" \"/Users/Miles/Sites/build-tool-config/node_modules/rollup-watch/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\nnode-pre-gypsuccess Saved 0 new dependencies.
Done in 11.31s.
yarn list
μ€ννλ©΄ fsevents
κ° λ λ² λμ΄λκ³ κ³ μ λ²μ μ΄ μ°μ νλ κ²μ²λΌ 보μ
λλ€.
ββ [email protected]
β ββ anymatch@^1.3.0
β ββ async-each@^1.0.0
β ββ fsevents@^1.0.0
β ββ [email protected]
β β ββ nan@^2.3.0
β β ββ node-pre-gyp@^0.6.29
β ββ glob-parent@^2.0.0
β ββ inherits@^2.0.1
β ββ is-binary-path@^1.0.0
β ββ is-glob@^2.0.0
β ββ [email protected]
β β ββ mkdirp@^0.5.1
β β ββ nopt@^4.0.1
β β ββ npmlog@^4.0.2
β β ββ rc@^1.1.7
β β ββ request@^2.81.0
β β ββ rimraf@^2.6.1
β β ββ semver@^5.3.0
β β ββ tar-pack@^3.4.0
β β ββ tar@^2.2.1
β ββ path-is-absolute@^1.0.0
β ββ readdirp@^2.0.0
μ΄μ λ₯Ό λͺ¨λ₯΄κ² μ΅λλ€. Chokidarκ° μ¬λ°λ₯΄κ² 보μ λλ€: https://github.com/paulmillr/chokidar/blob/master/package.json
κ·Έλ κΈ° λλ¬Έμ μ νμ depsκ° μλ Yarn λ¬Έμ λΌκ³ μκ°ν©λλ€.
μ΄ λ¬Έμ λ NPM v8μ μ¬μ©ν λ λ°μνλ©° NPM V6.10.3μΌλ‘ μ ννμ¬ λ¬Έμ λ₯Ό ν΄κ²°νμ΅λλ€.
μ΄κ²μ λ€μ λ°μνκΈ° μμνμΌλ©° μ¬μ ν FWIW λ¬Έμ μ λλ€. μ΅μ μΆλ ₯:
yarn install v1.3.2
[1/5] π Validating package.json...
[2/5] π Resolving packages...
[3/5] π Fetching packages...
[4/5] π Linking dependencies...
warning " > [email protected]" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
warning " > [email protected]" has unmet peer dependency "babel-core<strong i="6">@6</strong> || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc".
[5/5] π Building fresh packages...
[1/5] β fsevents
[2/5] β uglifyjs-webpack-plugin
[1/5] β fsevents
[1/5] β fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz
[-/5] β waiting...
[3/5] β fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v59-darwin-x64.tar.gz
[4/5] β fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz
[3/5] β fsevents: [fsevents] Success: "/Users/Miles/Sites/build-tool-config/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse
[4/5] β fsevents: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
warning Error running install script for optional dependency: "/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: node install\nArguments: \nDirectory: /Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:159:13)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:389:16)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:152:19)\nnode-pre-gyp ERR! System Darwin 17.3.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/9.3.0_1/bin/node\" \"/Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\nnode-pre-gyp ERR! cwd /Users/Miles/Sites/build-tool-config/node_modules/sane/node_modules/fsevents\nnode-pre-gyp ERR! node -v v9.3.0\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.37\nnode-pre-gyp ERR! not ok \nFailed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)"
info This module is OPTIONAL, you can safely ignore this error
warning Error running install script for optional dependency: "/Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: node install\nArguments: \nDirectory: /Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using [email protected]\nnode-pre-gyp info using [email protected] | darwin | x64\nnode-pre-gyp info check checked for \"/Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/Miles/Sites/build-tool-config/node_modules/watchpack/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:159:13)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:389:16)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:152:19)\nnode-pre-gyp ERR! System Darwin 17.3.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/9.3.0_1/bin/node\" \"/Users/Miles/Sites[-/5] β waiting...
[-/5] β waiting...
[-/5] β waiting...
[-/5] β waiting...
[-/5] β waiting...
^C/5] β weak
λ‘€λ°±, μ¬μ€μΉ, μ¬κ΅¬μΆ λ° λ²μ λ³κ²½μΌλ‘ λ¬Έμ κ° ν΄κ²°λμ§ μμμ΅λλ€.
μλ νμΈμ! κ·Έλμ μ λ ΈνΈλΆμ repoλ₯Ό μ€μΉν΄μΌ νκ³ μ΄κ²μ΄ μ μκ² ν¨κ³Όμ μ΄μμ΅λλ€.
Homebrewλ₯Ό μ¬μ©νμ¬ μμ¬λ₯Ό μ€μΉνμ΅λλ€.
λ΄ λ
ΈνΈλΆμμ μ€ν μ€μ
λλ€.
node: 9.5.0
yarn: 1.3.2
yarn install μ μ€ννλ €κ³ μλνμ§λ§ λͺ¨λ μ¬λμ΄ μμ λΆμ¬ λ£μ κ²κ³Ό λμΌν μ€λ₯κ° λ°μνμ΅λλ€. κ·Έλ° λ€μ μ μ₯μμμ λ Έλ λͺ¨λμ μμ νμ΅λλ€.
κ·Έλ° λ€μ μ€ν yarn add fsevents
μ€μΉ ν ^1.1.3
μ§μ
κ·Έλ° λ€μ yarn install
λ€μ μ€ννλ©΄ λͺ¨λ κ²μ΄ μ΅μ μνμ΄κ³ λͺ¨λ λ
Έλ λͺ¨λμ΄ λ€μ λνλ©λλ€.
κ·Έλ° λ€μ νλ‘μ νΈκ° μμλλ‘ μ»΄νμΌλκ³ μ€νλμμ΅λλ€. λΆλͺ ν μ΄μμ μ΄μ§λ μμ§λ§ ν¨κ³Όκ° μμμ΅λλ€.
Macμμ κ°λ° μ€μ΄μ§λ§ λΉλ/μ€ν λλ LinuxμΈ κ²½μ° optionalDependencies
μ§μ 1.1.3 λ²μ μ μΆκ°νλ©΄ λ¬Έμ κ° ν΄κ²°λ©λλ€.
λκ΅°κ°μκ² λμμ΄ λ μ μλλ‘ μ¬κΈ°μ λ¨κ²¨ λ‘λλ€.
https://github.com/nodejs/node-gyp/issues/809#issuecomment -473261194
μ
κ·Έλ μ΄λμ λ¬Έμ κ° μλ€λ©΄ μλ§λ μ΄μ λ²μ μΌ μλ μμ΅λλ€. yarn upgrade
μ¬μ©ν΄ 보μΈμ. :)
μ μμ 곡κ°μ μΆκ°ν ν μ΄ λ¬Έμ κ° λ°μνμ΅λλ€. Node: 12.3.1, Yarn: 1.16.0 λ° Lerna: 3.13.3
λλ₯Ό μν μ루μ
μ yarn cache clean && yarn
μ¬λ¬ μ μλ μ루μ μ μ‘°ν©ν΄μΌ νμ΅λλ€.
yarn cache clean && yarn upgrade && yarn
κ·Έκ² νΈλ¦μ νλ€. Expo νλ‘μ νΈμ μ’
μμ±μ μ€μΉνκΈ° μν΄ expo install expo-notifications
λ₯Ό μ€ννλ €κ³ νμ΅λλ€. λλ μ΄λ―Έ μμ νλ€ node_modules
μ€ν yarn install
, κ·Έλ¬λ μ΄λ€ μ΄μ λ‘ μ¬μ ν λ¬Έμ κ° μμλ€. μΊμκ° λ²μΈμΈ κ² κ°μ΅λλ€.
npm install -g [email protected]
λ
Έλ λ²μ μ λ€μ΄κ·Έλ μ΄λνλλ° μλ μ€μ
λλ€.
μ μΊμ ν΄λ¦° && μ μ κ·Έλ μ΄λ && μ
@squattoλ, κ°μ¬ν©λλ€. λ°©κΈ LTS λ²μ μ Node(10.x -> 12.x)λ‘ μ κ·Έλ μ΄λνμΌλ©° μ΄ λ¬Έμ (Expo νλ‘μ νΈμμλ)κ° μμμ§λ§ κ·νμ μ루μ μ΄ μ μκ² ν¨κ³Όμ μ΄μμ΅λλ€. π
λκ΅°κ° μ΄ μ€λ₯λ₯Ό λ°λ κ²½μ° no-xcode-or-clt-version-detected-macos
λ€μμ λ°λ₯΄μμμ€.
https://medium.com/flawless-app-stories/gyp-no-xcode-or-clt-version-detected-macos-catalina-anansewaa-38b536389e8d
κ°μ₯ μ μ©ν λκΈ
μ¬λ¬ μ μλ μ루μ μ μ‘°ν©ν΄μΌ νμ΅λλ€.
yarn cache clean && yarn upgrade && yarn
κ·Έκ² νΈλ¦μ νλ€. Expo νλ‘μ νΈμ μ’ μμ±μ μ€μΉνκΈ° μν΄
expo install expo-notifications
λ₯Ό μ€ννλ €κ³ νμ΅λλ€. λλ μ΄λ―Έ μμ νλ€node_modules
μ€νyarn install
, κ·Έλ¬λ μ΄λ€ μ΄μ λ‘ μ¬μ ν λ¬Έμ κ° μμλ€. μΊμκ° λ²μΈμΈ κ² κ°μ΅λλ€.