Yarn: Yarn์€ ํ”Œ๋žซํผ๋ณ„ ์„ ํƒ์  ์ข…์†์„ฑ ์„ค์น˜๋ฅผ ์ฃผ์žฅํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2017๋…„ 01์›” 12์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: yarnpkg/yarn

๊ธฐ๋Šฅ ์„ ์š”์ฒญํ•˜๊ฑฐ๋‚˜ ๋ฒ„๊ทธ๋ฅผ ๋ณด๊ณ  ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?

๋ฒ„๊ทธ.

ํ˜„์žฌ ํ–‰๋™์€ ๋ฌด์—‡์ž…๋‹ˆ๊นŒ?

Windows ๊ด€๋ จ ์„ ํƒ์  ์ข…์†์„ฑ์„ ํฌํ•จํ•˜๋Š” etcher-image-write ๋ชจ๋“ˆ์„ ์ถ”๊ฐ€ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

  ...
  "optionalDependencies": {
    "diskpart": "^1.0.0"
  },
  ...

diskpart ๋ชจ๋“ˆ์€ Windows์—๋งŒ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋Š” package.json ์—์„œ ๋‹ค์Œ์„ ์„ ์–ธํ•ฉ๋‹ˆ๋‹ค.

  ..
  "os": [
    "win32"
  ],
  ..

๊ทธ๋Ÿฌ๋‚˜ etcher-image-write ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ ค๊ณ  ํ•  ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

$ yarn add etcher-image-write
yarn add v0.19.0
info No lockfile found.
warning npm-shrinkwrap.json found. This will not be updated or respected. See https://yarnpkg.com/en/docs/migrating-from-npm for more information.
[1/4] ๐Ÿ”  Resolving packages...
warning [email protected]: this package is no longer updated or maintained
warning [email protected]: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron
warning file-tail > [email protected]: this package is no longer updated or maintained
warning electron-builder > progress-stream > through2 > xtend > [email protected]:
warning electron-packager > asar > mksnapshot > request > [email protected]: use uuid module instead
[2/4] ๐Ÿšš  Fetching packages...
warning [email protected]: The platform "darwin" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning [email protected]: The platform "darwin" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
error [email protected]: The platform "darwin" is incompatible with this module.
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

ํ˜„์žฌ ๋™์ž‘์ด ๋ฒ„๊ทธ์ธ ๊ฒฝ์šฐ ์žฌํ˜„ ๋‹จ๊ณ„๋ฅผ ์ œ๊ณตํ•˜์‹ญ์‹œ์˜ค.

yarn add etcher-image-write

์˜ˆ์ƒ๋˜๋Š” ๋™์ž‘์€ ๋ฌด์—‡์ž…๋‹ˆ๊นŒ?

diskpart ๋Š” etcher-image-write ์˜ ์„ ํƒ์  ์ข…์†์„ฑ์ด๋ฏ€๋กœ Yarn์€ ํ”Œ๋žซํผ ๋ถˆ์ผ์น˜๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ ์˜ค๋ฅ˜๋ฅผ ๋ฐœ์ƒ์‹œํ‚ค์ง€ ์•Š๊ณ  npm๊ณผ ๊ฐ™์ด ๊ฐ„๋‹จํžˆ ์ƒ๋žตํ•ฉ๋‹ˆ๋‹ค.

node.js, ์›์‚ฌ ๋ฐ ์šด์˜ ์ฒด์ œ ๋ฒ„์ „์„ ์–ธ๊ธ‰ํ•˜์‹ญ์‹œ์˜ค.

  • ๋…ธ๋“œJS: v6.1.0
  • ์›์‚ฌ: v0.19.0
  • OS: macOS ์‹œ์—๋ผ 10.12.2

๋ชจ๋“  3 ๋Œ“๊ธ€

ํ , ์ž ๊น. ์ด๊ฒƒ์€ https://github.com/resin-io/etcher ์—์„œ yarn add etcher-image-write ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ๋งŒ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด ์ด์ƒํ•˜๊ฒŒ ์ž˜ ์„ค์น˜๋ฉ๋‹ˆ๋‹ค.

์ข‹์Šต๋‹ˆ๋‹ค. ์›๋ณธ ๋ฉ”์‹œ์ง€๊ฐ€ ์†์‹ค๋˜์ง€ ์•Š๋„๋ก ์—ฌ๊ธฐ์— ๋ฌธ์ œ ์„ค๋ช…์„ ๋‹ค์‹œ ์ž‘์„ฑํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

https://github.com/resin-io/etcher ์šฉ Yarn์œผ๋กœ ์ด๋™ํ•˜๊ธฐ๋ฅผ ๊ณ ๋Œ€ํ•˜๊ณ  yarn install ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฐ๊ณผ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

$ git clone https://github.com/resin-io/etcher
$ yarn install
yarn install v0.19.0
info No lockfile found.
warning npm-shrinkwrap.json found. This will not be updated or respected. See https://yarnpkg.com/en/docs/migrating-from-npm for more information.
[1/4] ๐Ÿ”  Resolving packages...
warning [email protected]: this package is no longer updated or maintained
warning [email protected]: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron
warning file-tail > [email protected]: this package is no longer updated or maintained
warning etcher-image-write > progress-stream > through2 > xtend > [email protected]:
warning electron-packager > asar > mksnapshot > request > [email protected]: use uuid module instead
[2/4] ๐Ÿšš  Fetching packages...
warning [email protected]: The platform "darwin" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
warning [email protected]: The platform "darwin" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
error [email protected]: The platform "darwin" is incompatible with this module.
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

์›๋ž˜ yarn add etcher-image-write ์—์„œ etcher/ ์ˆ˜ํ–‰ํ•˜๋ฉด ๋™์ผํ•œ ๊ฒฐ๊ณผ๊ฐ€ ์‚ฐ์ถœ๋˜๊ธฐ ๋•Œ๋ฌธ์— ๋ฌธ์ œ๊ฐ€ etcher-image-write ์™€ ๊ด€๋ จ๋˜์–ด ์žˆ์—ˆ์ง€๋งŒ ๋ฌธ์ œ๋Š” removedrive ์—์„œ ๋ฐœ์ƒํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ด ๋ชจ๋“ˆ์€ Etcher ์ž์ฒด์˜ ์„ ํƒ์  ์ข…์†์„ฑ์ž…๋‹ˆ๋‹ค.

  ...
  "optionalDependencies": {
    "elevator": "^2.1.0",
    "removedrive": "^1.1.1"
  },
  ..

๊ทธ๋ฆฌ๊ณ  Windows ์ „์šฉ ํŒจํ‚ค์ง€:

  ...
  "os": [
    "win32"
  ],
  ...

์›๋ž˜ ๋ฌธ์ œ์˜ ๋™์ผํ•œ ์ฃผ์žฅ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

removedrive ๋Š” etcher ์˜ ์„ ํƒ์  ์ข…์†์„ฑ์ด๋ฏ€๋กœ Yarn์€ ํ”Œ๋žซํผ ๋ถˆ์ผ์น˜๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ ์˜ค๋ฅ˜๋ฅผ ๋ฐœ์ƒ์‹œํ‚ค์ง€ ์•Š๊ณ  npm๊ณผ ๊ฐ™์ด ๊ฐ„๋‹จํžˆ ์ƒ๋žตํ•ฉ๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ฌธ์ œ๋„ ์žˆ์Šต๋‹ˆ๋‹ค.
https://github.com/alykoshin/winston-winlog3
Windows ์ „์šฉ ๋ชจ๋“ˆ์— ๋”ฐ๋ผ ๋‹ค๋ฆ…๋‹ˆ๋‹ค.
https://github.com/alykoshin/node-windows

package.json์— ๋‹ค์Œ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

  "optionalDependencies": {
    "winston-winlog3": "^1.0.6"
  },

์˜ค๋ฅ˜:
error [email protected]: The platform "darwin" is incompatible with this module.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰