Cli: [๋ฒ„๊ทธ] npm ์„ค์น˜์‹œ EMISSINGARG

์— ๋งŒ๋“  2019๋…„ 12์›” 13์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: npm/cli

๋ญ? ์™œ

npm ์„ค์น˜ ์˜ค๋ฅ˜

์–ธ์ œ

  • npm ์„ค์น˜์‹œ

์–ด๋””

  • sudo apt install npm ํ†ตํ•ด npm ์„ค์น˜

์–ด๋–ป๊ฒŒ

ํ˜„์žฌ ํ–‰๋™

  • ํฐ ๋‚˜์œ ์˜ค๋ฅ˜

์žฌํ˜„ ๋‹จ๊ณ„

  • ๊ธฐ๋ณธ phoenix ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— npm ์„ค์น˜

์˜ˆ์ƒ๋˜๋Š” ๋™์ž‘

  • ์„ฑ๊ณต์ ์ธ ์„ค์น˜

WHO

  • ํ•ด๋‹น ์‚ฌํ•ญ ์—†์Œ

์ฐธ๊ณ  ๋ฌธํ—Œ

  • ํ•ด๋‹น ์‚ฌํ•ญ ์—†์Œ
cohen@xps-13-7390:~/code/cookbook/assets$ npm install
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: ๐Ÿ™Œ  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! Linux 4.15.0-1065-oem
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/cohen/code/cookbook/assets/npm-debug.log

npm-debug.log์˜ ๋‚ด์šฉ

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@marianelamin ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๊ท€ํ•˜์˜ ์†”๋ฃจ์…˜์ด ์ €์—๊ฒŒ ํšจ๊ณผ์ ์ด์—ˆ์Šต๋‹ˆ๋‹ค.

๋‚ด Ubuntu ์ธ์Šคํ„ด์Šค์—์„œ ๋‹ค์Œ ๋‘ ๋ช…๋ น์„ ์‹คํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.
# npm ์„ค์น˜ -gn
# n ์•ˆ์ •

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

๊ฐ™์€ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค

Phoenix ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ๋„์ด ๋ฌธ์ œ๋ฅผ ๋งŒ๋‚ฌ์Šต๋‹ˆ๋‹ค. ์ž์‚ฐ์˜ package.json ์—์„œ webpack-cli ๋ฅผ 2.xx์—์„œ 3.xx๋กœ ์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ฉด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋Š” ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค

  • Ubuntu 18.04 LTS
  • ๋…ธ๋“œ v8.10.0
  • npm v3.5.2
  • ํ”ผ๋‹‰์Šค 1.4.10

Ubuntu 18.04 LTS ๋ฐ Node v8.10.0์„ ์‚ฌ์šฉํ•˜์—ฌ ๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.

๋…ธ๋“œ ๋ฒ„์ „์„ ์—…๊ทธ๋ ˆ์ด๋“œํ–ˆ๊ณ  _npm install_์ด ์ œ๋Œ€๋กœ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

@marianelamin ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๊ท€ํ•˜์˜ ์†”๋ฃจ์…˜์ด ์ €์—๊ฒŒ ํšจ๊ณผ์ ์ด์—ˆ์Šต๋‹ˆ๋‹ค.

๋‚ด Ubuntu ์ธ์Šคํ„ด์Šค์—์„œ ๋‹ค์Œ ๋‘ ๋ช…๋ น์„ ์‹คํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.
# npm ์„ค์น˜ -gn
# n ์•ˆ์ •

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