๊ธฐ๋ฅ ์ ์์ฒญํ๊ฑฐ๋ ๋ฒ๊ทธ๋ฅผ ๋ณด๊ณ ํ์๊ฒ ์ต๋๊น?
๋ฒ๊ทธ.
ํ์ฌ ํ๋์ ๋ฌด์์ ๋๊น?
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, ์์ฌ ๋ฐ ์ด์ ์ฒด์ ๋ฒ์ ์ ์ธ๊ธํ์ญ์์ค.
ํ , ์ ๊น. ์ด๊ฒ์ 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.