*λ¬Έμ λ₯Ό λ§λ€κΈ° μ μ μ΅μ λ²μ μ μμ¬λ₯Ό μ¬μ©νκ³ μλμ§ νμΈνμΈμ.*
κΈ°λ₯ μ μμ²νκ±°λ λ²κ·Έλ₯Ό λ³΄κ³ νμκ² μ΅λκΉ?
λ²λ
νμ¬ νλμ 무μμ λκΉ?
yarn
fsevents
(404s)λ₯Ό μ€μΉνλ λ° μ€ν¨νμ§λ§npm
λ μ±κ³΅ν©λλ€.
νμ¬ λμμ΄ λ²κ·ΈμΈ κ²½μ° μ¬ν λ¨κ³λ₯Ό μ 곡νμμμ€.
yarn
μ ν¨κ»β― git clone [email protected]:minusfive/ember-cli-sass-variables-export.git
β― cd ember-cli-sass-variables-export
β― yarn
yarn install v1.7.0
[1/5] π Validating package.json...
[2/5] π Resolving packages...
[3/5] π Fetching packages...
[-------------------------------------------------------------------------------------------------------------------------------------------------------] 0/1048(node:5246) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[4/5] π Linking dependencies...
warning " > [email protected]" has unmet peer dependency "eslint@>=3.1.0".
[5/5] π Building fresh packages...
[-/3] β waiting...
[2/3] β fsevents
warning Error running install script for optional dependency: "/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /Users/minusfive/dev/oss/ember-cli-sass-variables-export/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/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (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.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp http GET https://nodejs.org/download/release/v10.4.0/node-v10.4.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v10.4.0/node-v10.4.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v10.4.0/node-v10.4.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v10.4.0/node-v10.4.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v10.4.0/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v10.4.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v10.4.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v10.4.0/SHASUMS256.txt
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/minusfive/.node-gyp/10.4.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/minusfive/.node-gyp/10.4.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/minusfive/.node-gyp/10.4.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/minusfive/.node-gyp/10.4.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/minusfive/.node-gyp/10.4.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/minusfive/.node-gyp/10.4.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
SOLINK_MODULE(target) Release/.node
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1648:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1648:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/minusfive/.node-gyp/10.4.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:85:
../src/methods.cc:14:12: warning: 'Call' is deprecated [-Wdeprecated-declarations]
handler->Call(3, argv);
^
../../nan/nan.h:1567:3: note: 'Call' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Local<v8::Value>
^
../../nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
^
In file included from ../fsevents.cc:85:
../src/methods.cc:14:12: warning: 'Call' is deprecated [-Wdeprecated-declarations]
handler->Call(3, argv);
^
../../nan/nan.h:1567:3: note: 'Call' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Local<v8::Value>
^
../../nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
^
5 warnings generated.
5 warnings generated.
SOLINK_MODULE(target) Release/fse.node
rm: cannot remove './Release/.deps/Release/obj.target/fse/fsevents.o.d.raw': No such file or directory
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Darwin 17.6.0
gyp ERR! command \"/usr/local/Cellar/node/10.4.0/bin/node\" \"/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64\"
gyp ERR! cwd /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents
gyp ERR! node -v v10.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/10.4.0/bin/node /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp ERR! System Darwin 17.6.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/10.4.0/bin/node\" \"/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents
node-pre-gyp ERR! node -v v10.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/10.4.0/bin/node /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
COPY /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp
β¨ Done in 157.31s.
npm
μ ν¨κ»β― rm -rf node_modules
β― npm install
> [email protected] install /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents
> node install
[fsevents] Success: "/Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> [email protected] install /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-sass
> node scripts/install.js
Cached binary found at /Users/minusfive/.npm/node-sass/4.9.0/darwin-x64-64_binding.node
> [email protected] postinstall /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-sass
> node scripts/build.js
Binary found at /Users/minusfive/dev/oss/ember-cli-sass-variables-export/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Testing binary
Binary is fine
added 1317 packages from 645 contributors and audited 40932 packages in 32.386s
μμλλ λμμ 무μμ λκΉ?
μλν΄μΌν©λκΉ?
node.js, μμ¬ λ° μ΄μ 체μ λ²μ μ μΈκΈνμμμ€.
β― node -v
v10.4.0
β― npm -v
6.1.0
β― yarn -v
1.7.0
β― sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.5
BuildVersion: 17F77
μ΄κ²μ μ€μ΄ μλλλ€. fseventsλ₯Ό ν΅ν΄ μ€νλλ μ€μΉ μ€ν¬λ¦½νΈ μ€ νλμμ 404λ₯Ό μ 곡νλ κ²μ AWSμ λλ€. μΊμλμκΈ° λλ¬Έμ npmμΌλ‘ μ§νλλ κ² κ°μ΅λλ€. YarnμΌλ‘ λ€μ μλνλ©΄ μΌμμ μΈ μλ² λ¬Έμ μΈ κ²½μ° ν΅κ³Όν μ μμ΅λλ€.
κ·Έλ μ§ μμ κ²½μ° npm μΊμλ₯Ό μ§μ°κ³ λ€μ μλνλ©΄ μ€ν¨ν©λλ€.
λ΄ μμ¬μ λ Έλ μΊμλ₯Ό λͺ¨λ μ§μ μ§λ§ μ¬μ ν μ΄ μ€λ₯(μμ¬ 1.6.0, λ Έλ 10.1.0)κ° νμλ©λλ€.
Node 10.4.1
μμλ μ΄ λ¬Έμ κ° λ°μν©λλ€.
μ
λ°μ΄νΈ : κ·Έκ²μ μ΄μ λ²μ μ λ°λΌ λ¬λΌμ§λλ€ μ°λ¦¬κ° μ¬μ©νλ μΉν©μ λ²μ μ λ°ν fsevents
μ νΈνλμ§ μμ΅λλ€ κ·Έ Node ^10
.
yarn upgrade
μ€νν΄ λ³΄μΈμ.
μ λ μ΄ λ¬Έμ κ° μμ§λ§ λͺ λ¬ μ μ yarn create react-app [dir name]
λ‘ μ€μ ν λλ ν 리μμλ§ λ°μν©λλ€.
λ€λ₯Έ νλ‘μ νΈμ λν΄ μ λλ ν 리λ₯Ό μμ±νλ©΄ λ¬Έμ κ° μμ΅λλ€.
node 10.4.1
npm 6.1.0
yarn 1.7.0
yarn upgrade
μ€ννλ €κ³ μλνμ§λ§ fseventsμ λμΌν μ€λ₯κ° λ°μν©λλ€.
λ€λ₯Έ μμ΄λμ΄κ° μμΌμ κ°μ?
@sisterjones μ λ CRAκ° μλ Macμμ λμΌν λ¬Έμ λ₯Ό κ²ͺκ³ μμΌλ©° μ λ₯Ό λ―ΈμΉκ² λ§λ€κ³ μμ΅λλ€(Node 10.4.1). Windowsμμλ μλνμ§λ§ Windowsμλ Node 9.11.1μ΄ μμ΅λλ€.
νΈμ§: λ Έλ 9.11.12λ‘ λ€μ΄κ·Έλ μ΄λνκ³ μ΄μ λͺ¨λ κ²μ΄ μ μλν©λλ€. μ΄ λ¬Έμ μ λν μμ μ¬νμ΄ κ³§ 릴리μ€λκΈ°λ₯Ό λ°λλλ€.
λ Έλ 10.5.0μ΄ μλ MacOSμμ λμΌν λ¬Έμ
λ Έλ 10.6.0κ³Ό λμΌν λ¬Έμ (macOs mojave λ² ν 2)
λ Έλλ₯Ό LTS 8.11.3μΌλ‘ λ€μ΄κ·Έλ μ΄λνλ©΄ μ λλ‘ μλν©λλ€.
10 λ―Έλ§μ λͺ¨λ nodejs λ²μ μ΄ μλν΄μΌ ν©λλ€.
λ΄ Ember νλ‘μ νΈλ₯Ό λ
Έλ 10+κ° νμν λ²μ 3.2λ‘ μ
κ·Έλ μ΄λν λ μ΄ λ¬Έμ κ° λ°μνμ΅λλ€. λμμ΄ λ μ μΌν κ²μ yarn upgrade
μ
λλ€.
λ Έλ 8.11 κ³ μ μ¬μ©
μ΅μ Yarn λ²μ μ μ΄ λ¬Έμ λ₯Ό ν΄κ²°ν©λλ€. μ λ°μ΄νΈ μ΄νλ‘ μ΄ λ¬Έμ κ° λ°μνμ§ μμμΌλ©° μ§κΈμ Node 10.xλ₯Ό μ€ννκ³ μμ΅λλ€.
λ€μκ³Ό κ°μ μ΄μ λ‘ μμ¬ μ κ·Έλ μ΄λλ₯Ό μ€νν μ μμ΅λλ€.
μ€λ₯ μ€λλ μ κΈ νμΌμ λλ€.
yarn install
νκ³ λ€μ μλνμμμ€.
μμ¬ μ€μΉλ₯Ό μ€ννλ©΄ λ€μκ³Ό κ°μ΄ νμλ©λλ€.
μ€λ₯ /Users/username/Programming/github.com/projectname/node_modules/node-zopfli: λͺ λ Ήμ΄ μ€ν¨νμ΅λλ€.
μ’ λ£ μ½λ: 1
λμκ² λΆκ°λ₯ν μ무μ²λΌ μ΄μμ
@Macilias λΉμ μ μ κΈ νμΌμ μμ ν μ μμΌλ©° μμ¬λ yarn install
μ€νν λ κ·Έκ²μ λ€μ μμ±ν©λλ€
trueμΈ λ°λ©΄, νμΌμ΄ μμ λλ©΄ yarnμ νμΌμ λ€μ μμ±νμ§ λͺ»νλ―λ‘ νλ‘μ νΈλ μ¬μ©ν μ μλ μνλ‘ μ μ§λ©λλ€... μ¬μ© κ°λ₯ν μνκ° λλλ‘ μ λ°μ΄νΈνλ λ°©λ²μ μ μ μμμ΅λλ€.
μΊμλ₯Ό μ§μ°κ³ μλ²½νκ² μλν©λλ€. yarn cache clean
μλ
Mojave OSμ yarn cache clean
μ λμΌν©λλ€. π
μ°μΆ:
...
gyp ERR! cwd /Users/username/.../app/node_modules/fsevents
gyp ERR! node -v v10.12.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
...
λ¨Όμ yarn global add node-gyp
μ€νν λ€μ fseventλ₯Ό μ€μΉν΄ 보μμμ€. γ
μ΄λ€ λ²μ μ μμ¬λ₯Ό μ¬μ©νκ³ μμ΅λκΉ? μ΅μ λ²μ μμλ μ΄κ²μ΄ νμνμ§ μμ΅λλ€.
@maximelaferieμ κ°μ λ¬Έμ κ° μμ΅λλ€.
yarn global add node-gyp
μ€νν΄λ μ μ₯λμ§ μμμ΅λλ€. @BYK
yarn version :1.2.1
node version :v10.13.0
npm version :6.4.1
macOS version : Mojave
νΈμ§νλ€
μ μ κ°μ λ¬Έμ κ° μλ λΆλ€μ μν΄ fsevents
μ¬μ€μΉλ₯Ό 건λλ°λ €λ©΄ λ
Έλ λ²μ μ λ€μ΄κ·Έλ μ΄λν΄μΌ ν©λλ€. λ΄ μμ
곡κ°μ μ΅μ’
νκ²½μ λΆμ¬λ£κ² μ΅λλ€.
yarn version :1.2.3
node version :8.12.0
κ΄μ°μ λ€μκ³Ό ν¨κ» μΌνμ΅λλ€ -
rm yarn.lock
yarn cache clean
yarn install
@maximelaferie μ κ°μ μ€λ₯ yarn global add
μΌλΆ ν¨ν€μ§λ fsevents
μ ν¨κ» μ 곡λμ§λ§ yarn cache clean
λ μ±κ³΅ν©λλ€.
νΈμ§νλ€
yarn global add node-gyp
λ₯Ό μ€νν λ€μ yarn global remove node-gyp
λ₯Ό μ€ννμ¬ λ¬Έμ κ° ν΄κ²°λ κ² κ°μ΅λλ€ ... λ¬΄μ¨ μΌμ΄ μΌμ΄λ¬λμ§ μ λͺ¨λ₯΄κ² μ§λ§ μ΄μ¨λ λͺ¨λ κ²μ΄ μ€λ₯ μμ΄ μλν©λλ€ π
μ΄ λ¬Έμ λ λμκ²λ λ°μν©λλ€.
μμ¬ 1.12.1
λ
Έλ 11.0.0
λ§₯OS 1.14 λͺ¨νλΉ.
μμ μμ μ¬νμ΄ ν¨κ³Όκ° μμμ΅λλ€.
λλ₯Ό μν΄ λμΌ:
μμ μμ μ¬νμ΄ ν¨κ³Όκ° μμμ΅λλ€.
μ λμ....μ΄λ² μ΄μκ° μ’ λ£λ μ΄μ λ 무μμΈκ°μ?
09:13:23 $ node -v
v11.2.0
09:18:10 $ yarn -v
1.12.3
09:18:12 $ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G65
μ κ²½μ°μλ pyenvλ₯Ό μ¬μ©νμ¬ pythonμ 2.7λ‘ λ€μ΄κ·Έλ μ΄λνλ κ²μ΄ λμμ΄ λμμ΅λλ€.
node-gypμλ 3.xκ° μλ python 2.7μ΄ νμν©λλ€.
λ²μ μ΄ μλ Mac OS X:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G3025
$ node -v
v11.12.0
$ yarn -v
1.15.2
λ€μμ΄ λμμ΄λμμ΅λλ€ (μ npmμ΄ μ΄μ μ μ±κ³΅νμ΅λλ€).
# xcode was erroring with brew
sudo xcode-select --switch /Applications/Xcode.app
sudo xcodebuild -license accept
# fresh new node modules
rm -rf node_modules
# solution <strong i="9">@shrinathaithal</strong> (these commands alone did not help though)
rm yarn.lock
yarn cache clean
yarn install
λ Έλ λ²μ μ μ΅μ μμ ltsλ‘ λ³κ²½νμ¬ μ νν λμΌν μ€λ₯λ₯Ό ν΄κ²°νμ΅λλ€.
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E227
$ npm -v
6.4.1
$ yarn -v
1.15.2
$ node -v
v12.0.0
$ sudo n lts
$ node -v
v10.15.3
$ create-react-app my-app
λ°©κΈ λ΄ Macμ Node v12.1.0μμ λΉμ·ν λ¬Έμ κ° λ°μνμ΅λλ€. $ yarn upgrade
λ₯Ό μ¬μ©νμ¬ μμ νμ΅λλ€. ν€κ° fsevent v1.2.8μμ v1.2.9λ‘ μ
λ°μ΄νΈλ κ² κ°μ΅λλ€.
λ€μμ μ€ννλ κ²κ³Ό λμΌν λ¬Έμ κ° μμμ΅λλ€.
> sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E226
> node -v
v12.1.0
yarn cache clean
λ€μ νμ¬ λ²μ μ΄ μλ v10.15.3μμ Node.jsμ LTS λ²μ μ μ¬μ©νλ©΄ λ¬Έμ κ° ν΄κ²°λμμ΅λλ€.
μ λ μ¬λ¬ Node.js λ²μ μ λ€λ£¨κΈ° μν΄ nvm
μ
λλ€.
μ¬κΈ°μ λ Έλλ₯Ό v12.2.0 μμ LTS v10.15.3 μΌλ‘ λ€μ΄κ·Έλ μ΄λνμ¬ μμ
μ΅κ·Ό fseventsμ λ¬Έμ κ° μμ΄ λ Έλ 12μ νΈνλμ§ μμ΅λλ€. μ΄ λ¬Έμ λ fsevents v1.2.9μμ ν΄κ²°λμ΄ λ¦΄λ¦¬μ€λμμ΅λλ€. fseventμ μμ‘΄νλ μ’ μμ±μ΄ μλ κ²½μ° ν΄μλλ₯Ό μ¬μ©νμ¬ κ°κ°μ λν΄ λ²μ 1.2.9λ₯Ό μ¬μ©νλλ‘ Yarnμ μ§μν μ μμ΅λλ€.
μ΄κ²μ package.json
νμΌμ μΆκ°ν λ€μ yarn
(λλ yarn install
)λ₯Ό λ€μ μ€ννμμμ€.
"resolutions": {
"fsevents": "1.2.9"
}
μμ¬ μ κ·Έλ μ΄λλ λ΄ λ¬Έμ λ₯Ό ν΄κ²°ν©λλ€.
Yarnμ #6834 λ²κ·Έλ‘ μΈν΄ resolutions
(@coreywardκ° μ μν λλ‘)μ λμ΄λ ν¨ν€μ§λ₯Ό μ ν μ¬νμ΄ μλ κ²μΌλ‘ μ·¨κΈν μμ μ
λλ€. λ²κ·Έλ‘ μΈν΄ macOSμμλ λΉλκ° μ±κ³΅ν μ μμ§λ§ Linuxμμλ μ€ν¨ν©λλ€.
λλ μ΅κ·Όμ μ΄ λ¬Έμ λ₯Ό κ²½ννκ³ yarn upgrade
μ΄ λ¬Έμ λ₯Ό ν΄κ²°νμ΅λλ€. κ°μ¬ν©λλ€!
@aindong μμ λκΈ λ³΄μ ¨λμ?
Yarnμ #6834 λ²κ·Έλ‘ μΈν΄
resolutions
(@coreywardκ° μ μν λλ‘)μ λμ΄λ ν¨ν€μ§λ₯Ό μ ν μ¬νμ΄ μλ κ²μΌλ‘ μ·¨κΈν μμ μ λλ€. λ²κ·Έλ‘ μΈν΄ macOSμμλ λΉλκ° μ±κ³΅ν μ μμ§λ§ Linuxμμλ μ€ν¨ν©λλ€.
λΉμ μ΄ ν μμλ yarn upgrade
μ€μΉν©λλ€ κ·νμ λ§₯μ fsevents
μμΉλ₯Ό 리λ
μ€ μλ²μ λ°°ν¬ ν κ° λ, κ·Έλ¬λ λ€μμ fsevents
μ¬μ©ν μ μμ΅λλ€ (κ·Έκ²μ λ§₯ OS μ μ©) μ€ν¨ν κ²μ΄λ€.
fsevents
μ¬μ ν λ¬Έμ κ° μλ κ²½μ° μ¬μ© μ€μΈ ν¨ν€μ§λ₯Ό μ
κ·Έλ μ΄λν΄μΌ ν μ μμ΅λλ€. κ·Έλ€μ κ²°κ΅ fsevents
μ μ΄μ λ²μ μ μ¬μ©νλ μ€λλ μ’
μμ±μ κ°μ§ μ μμ΅λλ€. μ κ²½μ°μλ nodemod
-> yarn upgrade nodemon
μ°Ύλ λ°©λ²:
yarn list
fsevents
μ λͺ¨λ νλͺ©μ λν΄ λ€λ‘ κ²μyarn upgrade <package>
rm -rf node_modules
yarn cache clean
yarn
@egel μ΄κ²μ κ³Όμμ
λλ€. fsevents
λ₯Ό μ’
μμ±μΌλ‘ μ°Έμ‘°νλ λλΆλΆμ μ’
μμ±μ ~> 0.2.7
λλ >= 0.2.7
μ κ°μ΄ μ μΈλμ΄ 0.2.9
λ²μ μ κ³μ μΆ©μ‘±νλ©΄μ μ€μΉν μ μμ΅λλ€. μꡬ μ¬ν. λ°λΌμ Yarnμ΄ νΉμ λ²μ μ λν μ’
μμ± μ μΈ(μ: fsevents ~> 0.2.7
λλ fsevents
)μ _resolve_νλλ‘ νλ ν΄κ²° λ°©λ²μ μ¬μ©νλ μ루μ
μ
λλ€.
μ°Έκ³ λ‘ μ΄κ²μ λλΆλΆμ μ’
μμ±μμ νλ₯νκ² μλνμ§λ§ fsevents
λ νλ«νΌμ λ°λΌ λ€λ₯΄λ©° Yarnμ μ΄μ λ²μ μμλ Yarnμ΄ fsevents
μ¬μ©νμ§ μλ νκ²½μμ μ€νλ λ ν΄κ²° λ°©λ²μ μ νμ μΌλ‘ νμ©νμ§ μμκΈ° λλ¬Έμ yarn install
λ€μ μ€νν λ€μ yarn.lock
νμΌμ _only_ 컀λ°νκ³ ν΄κ²° λ°©λ²μ μμ ν©λλ€. package.json
νμΌμ μ μΈν©λλ€. κ·Έ κ²°κ³Ό fsevents
μ μ¬λ°λ₯Έ λ²μ μ΄ μμΌλ‘ νμ©λμ§λ§, ν΄μλκ° μ¬μ©λμ§ μκΈ° λλ¬Έμ μ νμ νλκ·Έκ° ν΄λ‘λ²λμ§ μμ΅λλ€.
μ΄μ¨λ rm -rf node_modules
λ° yarn cache clean
μ κ°μ λͺ
λ Ήμ μ€ννλ κ²μ μμλ ν¨ν€μ§μ λ¬Έμ κ° μμ λ ν¨κ³Όκ° μμ΅λλ€. λ€νΈμν¬λ₯Ό ν΅ν΄ μ 체 μΊμλ₯Ό μ¬κ΅¬μΆνλ κ²λ λ리λ―λ‘ λΆνμνκ² μ΄ μμ
μ μννλ κ²μ κΆμ₯λμ§ μμ΅λλ€.
λ
Έλ λ²μ μ 10.2.1, yarn 1.21.1λ‘ λ³κ²½νμ¬ node-pre-gyp ERR! not ok
λ₯Ό ν΄κ²°νμΌλ©° μ΄μ μ λλ‘ μλν©λλ€!
λκ΅°κ°κ° μ¬μ νμ΄ λ¬Έμ λ₯Ό κ°μ§κ³ μλμ§ λͺ¨λ₯΄κ² μ΅λλ€. λλ κ·Έκ²μ ν΄κ²°νλ€.
yarn install --check-files
λͺ λ²μ΄λ νμ΄μΌ νλλ°
OSX 10.13 High Sierraμμ νμ΅λλ€.
λλ₯Ό μν΄ μλ:
yarn upgrade
revert changes in package.json (if needed for your situation)
rm -rf node_modules
rm yarn.lock
yarn
commit newly created lock file
κ·Έκ²μ λλ₯Ό μν΄ μΌνμ΅λλ€ xcode-select --install
μ κ²½μ°μλ Babelμ΄ μκΈ° λλ¬Έμ μ¬μ©ν μ μμμ΅λλ€.
"resolutions": {
"**/**/fsevents": "^1.2.9"
}
λ€λ₯Έ λ²μ μ μ¬μ©νλ μ¬λ¬ μ€μ²© μ’ μμ±μΌλ‘ μΈν΄.
κ·Έλ¬λ λλ λ€μμ μ¬μ©νμ¬ μ±κ³΅νμ΅λλ€.
"resolutions": {
"**/**/chokidar": "^2.1.8"
}
λλ΅ Babel νμ λ
Έλ 6κ³Όμ νΈνμ±μ μ μ§νκΈ°λ₯Ό μνκΈ° λλ¬Έμ μ¬μ ν μ΄μ fsevents
μ μ¬μ©νμ§λ§ Babel v8μμ λ§μ΄κ·Έλ μ΄μ
ν κ³νμ
λλ€.
λμμ΄ λκΈ°λ₯Ό λ°λλλ€ π₯°
λλ μμ νμ¬μ΄ λ¬Έμ λ₯Ό ν΄κ²° package-lock.json
λ€μ μ€ν npm install
.
λκ΅°κ°κ° μ¬μ νμ΄ λ¬Έμ λ₯Ό κ°μ§κ³ μλμ§ λͺ¨λ₯΄κ² μ΅λλ€. λλ κ·Έκ²μ ν΄κ²°νλ€.
yarn install --check-files
λͺ λ²μ΄λ νμ΄μΌ νλλ°OSX 10.13 High Sierraμμ νμ΅λλ€.
μ΄κ²μ λλ₯Ό μν΄ ν΄κ²°λμμ΅λλ€! μ λ λͺ λ² μ€νν΄μΌ νμ΅λλ€.
κ°μ¬ ν΄μ
κ°μ₯ μ μ©ν λκΈ
Node 10.4.1
μμλ μ΄ λ¬Έμ κ° λ°μν©λλ€.μ λ°μ΄νΈ : κ·Έκ²μ μ΄μ λ²μ μ λ°λΌ λ¬λΌμ§λλ€ μ°λ¦¬κ° μ¬μ©νλ μΉν©μ λ²μ μ λ°ν
fsevents
μ νΈνλμ§ μμ΅λλ€ κ·ΈNode ^10
.yarn upgrade
μ€νν΄ λ³΄μΈμ.