Cli: Catch-All : "npm ERR! cb ()๊ฐ€ ํ˜ธ์ถœ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค!"

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

์ด ํ‹ฐ์ผ“์„ ์ด๋Ÿฌํ•œ ์œ ํ˜•์˜ ์˜ค๋ฅ˜์— ๋Œ€ํ•œ ํฌ๊ด„์  ์ธ ์ˆ˜๋‹จ์œผ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ด๋“ค์— ๋Œ€ํ•œ ๋ชจ๋“  ๊ด€๋ จ ์ •๋ณด๊ฐ€์ด ๋ฌธ์ œ์— ํฌํ•จ๋˜์–ด์•ผํ•ฉ๋‹ˆ๋‹ค.

  Original bug ticket: [https://npm.community/t/9355](https://npm.community/t/9355)
  Originally filed: 2019-08-07T17:15:54.842Z

์›ํŒ์—์„œ : https://npm.community/t/9355
๋””๋ฒ„๊ทธ ๋กœ๊ทธ : 2019-08-07T17_07_58_949Z-debug.log
์‹คํ–‰ ๋œ ์ž‘์—… : npm audit fix

ํ”Œ๋žซํผ ์ •๋ณด :

$ npm --versions
{ 'next-boilerplate': '1.0.0',
  npm: '6.9.0',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '35.1',
  http_parser: '2.8.0',
  icu: '64.2',
  modules: '64',
  napi: '4',
  nghttp2: '1.34.0',
  node: '10.16.1',
  openssl: '1.1.1c',
  tz: '2019a',
  unicode: '12.1',
  uv: '1.28.0',
  v8: '6.8.275.32-node.54',
  zlib: '1.2.11' }
$ node -p process.platform
linux
Bug Community Release 6.x

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

์ €์—๊ฒŒ ์ด๊ฒƒ์€ VPN์„ ํ†ตํ•ด ํšŒ์‚ฌ ํ”„๋ก์‹œ๋ฅผ ํ†ตํ•ด npm install ์„ ์‹œ๋„ ํ•  ๋•Œ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค (์‹ค์ œ๋กœ ํ”„๋ก์‹œ๋Š” ์ค‘์š”ํ•˜์ง€ ์•Š์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค). ํŒจํ‚ค์ง€๊ฐ€ ๋ฐ”์ด๋„ˆ๋ฆฌ (์˜ˆ : https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-79_binding.node)๋ฅผ ๋‹ค์šด๋กœ๋“œํ•˜๋ ค๊ณ  ํ•  ๋•Œ NPM์ด ์ค‘๋‹จ๋ฉ๋‹ˆ๋‹ค. ์„ค์น˜ ํ›„ ๋‹จ๊ณ„ (ํŒจํ‚ค์ง€์— ๋”ฐ๋ผ ๋‹ค๋ฆ„).

VPN (Global Protect) ๊ณผ ํ”„๋ก์‹œ๋ฅผ ๋ˆ ํ›„ ๋ชจ๋“  ๊ฒƒ์ด ๋ฌธ์ œ์—†์ด ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค.

ํ”„๋ก์‹œ ๋ฐ VPN์ด ์ผœ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ โŒ

$ npm i node-sass
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\---\AppData\Roaming\npm-cache\_logs\2020-03-16T23_37_35_801Z-debug.log

image

image

image

2020-03-16T23_37_35_801Z-debug.log

ํ”„๋ก์‹œ ๋ฐ VPN์ด ๊บผ์ง„ ๊ฒฝ์šฐ โœ”

$ npm i node-sass
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

> [email protected] install C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-79_binding.node
Download complete
Binary saved to C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Caching binary to C:\Users\---\AppData\Roaming\npm-cache\node-sass\4.13.1\win32-x64-79_binding.node

> [email protected] postinstall C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/build.js

Binary found at C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Testing binary
Binary is fine
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 173 packages from 137 contributors and audited 528 packages in 16.034s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

image

ํ”„๋ก์‹œ ๋งŒ ์‚ฌ์šฉ โœ”

$ npm i node-sass
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

> [email protected] install C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-79_binding.node
Download complete
Binary saved to C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Caching binary to C:\Users\---\AppData\Roaming\npm-cache\node-sass\4.13.1\win32-x64-79_binding.node

> [email protected] postinstall C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/build.js

Binary found at C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Testing binary
Binary is fine
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 173 packages from 137 contributors and audited 528 packages in 16.233s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

image

๊ทธ๋ž˜์„œ, ์—ฐ์—ญ์  ์ถ”๋ฆฌํ•จ์œผ๋กœ์จ, ์š”์ฒญ / ์‘๋‹ต์ด VPN์„ ํ†ตํ•ด ์ฒ˜๋ฆฌ๋˜๋Š” ๋ฐฉ๋ฒ•์„ ํ•จ๊ป˜ ํ•  ์ˆ˜์žˆ๋Š” ๋ญ”๊ฐ€๊ฐ€ ์žˆ์–ด์•ผํ•ฉ๋‹ˆ๋‹ค ...

rm /c/Users/---/AppData/Roaming/npm-cache/node-sass/4.13.1/win32-x64-79_binding.node ํ•˜๊ณ  ๊ฐ ํ…Œ์ŠคํŠธ ์‚ฌ์ด์— ์ƒˆ๋กœ์šด node_modules ๋””๋ ‰ํ„ฐ๋ฆฌ๋กœ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ๋ฌด์‹ค์—์„œ ์ผํ•˜๊ธฐ ๋•Œ๋ฌธ์— ๋ฌธ์ œ๋ฅผ ์ผ์œผํ‚ค์ง€ ์•Š๋Š” ํ”„๋ก์‹œ ๋งŒ ์ฒ˜๋ฆฌํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ด์ œ ์šฐ๋ฆฌ ๋ชจ๋‘ ์žฌํƒ ๊ทผ๋ฌด๋ฅผํ•˜๋‹ˆ์ด ๋ฌธ์ œ์— ๋ถ€๋”ช ํž ๊ธฐํšŒ๊ฐ€ ์ƒ๊ฒผ์Šต๋‹ˆ๋‹ค ... ๋„์›€์ด ๋˜์—ˆ์œผ๋ฉด ์ข‹๊ฒ ๋„ค์š” ๐Ÿ˜…

๋ฒ„์ „ ๋ฐ ์‹œ์Šคํ…œ ์ •๋ณด

  • ์œˆ๋„์šฐ 10
$ node --version
v13.11.0
$ npm --version
6.13.7

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

๋™์ผํ•œ ๋ณด๊ณ ์„œ๊ฐ€ ๋งŽ์œผ๋ฏ€๋กœ ๋ชจ๋‘ ์ค‘๋ณต๋˜์–ด์•ผํ•ฉ๋‹ˆ๋‹ค.

https://github.com/npm/cli/issues/423
https://github.com/npm/cli/issues/425
https://github.com/npm/cli/issues/442
https://github.com/npm/cli/issues/451
https://github.com/npm/cli/issues/455
https://github.com/npm/cli/issues/465

Afaik์ด ๋ฌธ์ œ๋Š” ์บ์‹œ๋ฅผ ๊ฐ•์ œ ์‚ญ์ œํ•˜๊ณ  ์ตœ์‹  npm ๋ฒ„์ „์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ / ์—…๋ฐ์ดํŠธํ•˜๋ฉด ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.

๊ทธ ๋ชจ๋“  โค๏ธ ๋ฅผ ์—ฐ๊ฒฐํ•ด ์ฃผ์‹ 

489

์–ด๋–ค ๋ฒ„์ „์ด ์ฒ˜์Œ ๋„์ž…๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๊ณ  (์ž‘์€ git bisect ) ์Šคํƒ ์ถ”์ ์—์„œ ์œ ์‚ฌ์„ฑ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋ฌธ์ œ์—์„œ ๋‹ค์Œ ๋ฒ„์ „์ด ์–ธ๊ธ‰๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

6.4.1
6.9.0
6.10.2
6.12.1
6.13.1
6.13.4

์ด์ œ ์žฌํ˜„ ๊ฐ€๋Šฅํ•œ ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค๋ฅผ ์–ป์œผ๋ ค๊ณ ํ•ฉ๋‹ˆ๋‹ค.

์ด ์˜ค๋ฅ˜๋ฅผ ๊ธฐ๋กํ•˜๊ธฐ์œ„ํ•œ ๊ณผ๊ฑฐ์˜ ๊ด€๋ จ ๋ณ€๊ฒฝ : https://github.com/npm/npm/pull/15716

๋กœ์ปฌ npm 6.13.1๋กœ ํ…Œ์ŠคํŠธ (macOS์—์„œ) :

@vue/cli : ์žฌํ˜„ ๋ถˆ๊ฐ€
npm audit fix : ์žฌํ˜„ ๋ถˆ๊ฐ€
plotly.js : ์žฌํ˜„ ๋ถˆ๊ฐ€
expo-cli : ์žฌํ˜„ ๋ถˆ๊ฐ€

์ง€๊ธˆ๊นŒ์ง€๋Š” CLI๋ฅผ ๋„ˆ๋ฌด ์ผ์ฐ ์ทจ์†Œํ•˜๋Š” ๋‹ค๋ฅธ ์˜ค๋ฅ˜๋กœ ์ธํ•ด ๋ฐœ์ƒํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ตœ์‹  ๋ฒ„์ „๊ณผ ์ผ๋ถ€ ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜๋Š” Ubuntu์—์„œ๋„์ด ๋ฒ„๊ทธ๊ฐ€ ์žˆ์—ˆ๋˜ ๊ฒƒ์„ ๊ธฐ์–ตํ•ฉ๋‹ˆ๋‹ค.

๊ฐœ๋ฐœ์„ ์œ„ํ•ด ํšŒ์‚ฌ ํ”„๋กœ์ ํŠธ๋ฅผ ์„ค์น˜ํ•˜๋ ค๊ณ ํ•˜๋ฉด ๋™์ผํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
Microsoft Windows [๋ฒ„์ „ 10.0.17134.1184]

NVM์„ ์‚ฌ์šฉํ•˜์—ฌ node / npm์˜ ์ธ์Šคํ„ด์Šค ์ „ํ™˜
๋…ธ๋“œ v10.14.2 (64 ๋น„ํŠธ), npm v6.4.1
๋…ธ๋“œ v12.4.0 (64 ๋น„ํŠธ), npm v6.9.0

ํ”„๋กœ์ ํŠธ๋Š” Angular CLI ๋ฒ„์ „ 8.3.21๋กœ ์ƒ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

[Windows ์šฉ NVM ์„ค์ •, Ecor Ventures LLC, Tuesday, 8 ์›” 7, 2018 9:46:31 PM]

(nvm-windows ์—ฌ์•ผํ•ฉ๋‹ˆ๋‹ค. ์‹ค์ œ nvm์€ ๋น„ WSL Windows์—์„œ ์ž‘๋™ํ•˜์ง€ ์•Š์œผ๋ฉฐ 64 ๋น„ํŠธ๋ฅผ ๊ตฌ๋ถ„ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.)

๋กœ์ปฌ ๊ฐœ๋ฐœ๊ณผ CI ์‹œ์Šคํ…œ ๋ชจ๋‘์—์„œ์ด ์˜ค๋ฅ˜๊ฐ€ ๊ฐ„ํ—์ ์œผ๋กœ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค. ๋„์›€์ด ๋ ๋งŒํ•œ ์ถ”๊ฐ€ ๋กœ๊น…์„ ์ถ”๊ฐ€ํ•˜๊ฒŒ๋˜์–ด ๊ธฐ์ฉ๋‹ˆ๋‹ค. ๋‚ด Mac์˜ ๋žฉํ†ฑ์—์„œ ๋ฐฉ๊ธˆ ๋ฐœ์ƒํ•œ ์‹คํ–‰์˜ npm ๋กœ๊ทธ๋ฅผ ์ฒจ๋ถ€ํ•˜์—ฌ ๊ฐœ์ธ ํŒจํ‚ค์ง€ ์ค‘ ํ•˜๋‚˜๋ฅผ npm ์„ค์น˜ํ•˜๋ ค๊ณ ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ช…๋ น์„ ์ฆ‰์‹œ ๋‹ค์‹œ ์‹คํ–‰ํ•˜๋ฉด ๋ฌธ์ œ์—†์ด ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค.

npm install @globalworldwide/km-core@latest
2020-01-04T02_02_56_202Z-debug.log

โฏ npm -v
6.13.4
โฏ ๋…ธ๋“œ -v
v13.5.0

์ด ๋ฌธ์ œ๋ฅผ ์ถ”์ ํ•˜๊ธฐ ์œ„ํ•ด ๋‚ด๊ฐ€ ํ•  ์ˆ˜์žˆ๋Š” ์ผ์ด ์žˆ์œผ๋ฉด ์•Œ๋ ค์ฃผ์„ธ์š”. ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

ํŠธ๋ฆฌ๊ฑฐ ๋œ ์ž‘์—… :

๋ถ„๋ฅ˜๋กœ์„œ์˜ ์ƒ๊ฐ :

  • ์ด cb() never called! ์˜ค๋ฅ˜๋ฅผ ์ผ์œผํ‚ค๋Š” ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋™์•ˆ ์˜ค๋ฅ˜๊ฐ€์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
  • ๋ถ„๋ฅ˜ ํ•  ๋ฌธ์ œ๊ฐ€ 42 ๊ฐœ ์žˆ์Šต๋‹ˆ๋‹ค ...
  • https://github.com/npm/cli/issues/442 ์›๋ž˜ ๋ฌธ์ œ๋Š” ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ์บ์‹œ ์—…๋ฐ์ดํŠธ ๋ฐ ์ •๋ฆฌ๋ฅผ ์ฐธ์กฐํ•˜๋Š” ์ˆ˜์ •์„ ์ฐธ์กฐํ•ฉ๋‹ˆ๋‹ค (์ˆ˜์ • ๊ถŒํ•œ ์—…๋ฐ์ดํŠธ), ์บ์‹œ๋Š” cacache ์— ๋ฌธ์ œ๊ฐ€ ์กด์žฌ / ์กด์žฌ ํ•จ์„ ๋‚˜ํƒ€๋‚ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. pacote
  • https://github.com/npm/cli/issues/451 ๊ฐ™์€ ์ฆ์ƒ์ด์žˆ๋Š” ๊ฒƒ ๊ฐ™์ง€๋งŒ ์›์ธ์ด npm ๋‚ด์—์žˆ๋Š” ๊ฒƒ ๊ฐ™์ง€ ์•Š์ง€๋งŒ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋™์•ˆ ๋ฌธ์ œ๋ฅผ ์ง€์ ํ•˜๋Š” ๋ฐ ๋„์›€์ด๋ฉ๋‹ˆ๋‹ค.

๊ฒ€์ƒ‰ ์ฐฝ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•„๋Š” ์‚ฌ๋žŒ์ด ๊ฑฐ์˜ ์—†๋‹ค๋Š” ๊ฒƒ์€ ๋†€๋ž์Šต๋‹ˆ๋‹ค ...

๋ˆ„๊ตฌ๋“ ์ง€ ์ด๊ฒƒ์ด ์›์ธ์ด ๋  ์ˆ˜์žˆ๋Š” ์•„์ด๋””์–ด๊ฐ€ ์žˆ์Šต๋‹ˆ๊นŒ?

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

Windows 10์—์„œ ๋กœ์ปฌ๋กœ npm install ์‹คํ–‰ํ•˜๋ฉด ๋ชจ๋“  ๊ฒƒ์ด ์ž˜ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

64 ๋น„ํŠธ Amazon Linux / 4.13.0 ์‹œ์Šคํ…œ์—์„œ dev.azure.com์—์„œ npm install ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

120982 error cb() never called! 120983 error This is an error with npm itself. Please report this error at: 120984 error <https://npm.community>

Node 12๋ฅผ ๋กœ์ปฌ๋กœ ์‹คํ–‰ํ•˜๊ณ  ์žˆ์—ˆ๊ธฐ ๋•Œ๋ฌธ์— Node ํ™˜๊ฒฝ์„ Node 10์—์„œ Node 12๋กœ ์—…๊ทธ๋ ˆ์ด๋“œํ•˜๋ ค๊ณ  ์‹œ๋„ํ–ˆ์ง€๋งŒ ์•„๋ฌด๋Ÿฐ ์˜ํ–ฅ์„ ๋ฏธ์น˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์œผ๋กœ ๋ฌด์—‡์„ ํ•ด์•ผํ• ์ง€ ๋ชจ๋ฅด๊ฒ ๋‹ค. ๊ทธ๋ฆฌ๊ณ ์ด ๋ฌธ์ œ๋Š” ์™„์ „ํžˆ ์ฐจ๋‹จ๋˜๊ณ ์žˆ๋‹ค !!

์•ˆ๋…•ํ•˜์„ธ์š” @jslegers ๋‹˜์ด ์ฐจ๋‹จ๋˜์—ˆ๋‹ค

์ด ๋ฌธ์ œ์— ๋Œ€ํ•œ ์ดˆ๊ธฐ ์กฐ์‚ฌ์—์„œ https://github.com/npm/cli/issues/442 ๋ฌธ์ œ๊ฐ€ ๊ฐ€๋Šฅํ•œ ์†”๋ฃจ์…˜์— ๋Œ€ํ•œ ๋งํฌ๊ฐ€์žˆ๋Š” ์ปค๋ฎค๋‹ˆํ‹ฐ ํŽ˜์ด์ง€๋ฅผ ์ฐธ์กฐํ–ˆ๋‹ค๊ณ  ์–ธ๊ธ‰ํ–ˆ์Šต๋‹ˆ๋‹ค. ์บ์‹œ๋ฅผ ์ง€์šฐ๋ฉด ์ผ๋ถ€ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜๋Š” ๊ฒƒ ๊ฐ™์•˜์Šต๋‹ˆ๋‹ค. ์ž‘์—… ์ฐจ๋‹จ์„ ํ•ด์ œ ํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ํ™•์ธํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

์•ˆ๋…•ํ•˜์„ธ์š” @jslegers ๋‹˜์ด ์ฐจ๋‹จ๋˜์—ˆ๋‹ค

์ด ๋ฌธ์ œ์— ๋Œ€ํ•œ ์ดˆ๊ธฐ ์กฐ์‚ฌ์—์„œ ๋ฌธ์ œ # 442๊ฐ€ ๊ฐ€๋Šฅํ•œ ํ•ด๊ฒฐ์ฑ…์— ๋Œ€ํ•œ ๋งํฌ๊ฐ€์žˆ๋Š” ์ปค๋ฎค๋‹ˆํ‹ฐ ํŽ˜์ด์ง€๋ฅผ ์ฐธ์กฐํ–ˆ๋‹ค๊ณ  ์–ธ๊ธ‰ํ–ˆ์Šต๋‹ˆ๋‹ค. ์บ์‹œ๋ฅผ ์ง€์šฐ๋ฉด ์ผ๋ถ€ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜๋Š” ๊ฒƒ ๊ฐ™์•˜์Šต๋‹ˆ๋‹ค. ์ž‘์—… ์ฐจ๋‹จ์„ ํ•ด์ œ ํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ํ™•์ธํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

ํŒ ๊ณ ๋งˆ์›Œ!

๋‚˜๋Š” ๊ฒฐ๊ตญ ์Šค์Šค๋กœ ํ•ด๊ฒฐ์ฑ…์„ ์ฐพ์„ ์ˆ˜ ์žˆ์—ˆ๋‹ค.

๋ถ„๋ช…ํžˆ์ด ๋ฌธ์ œ๋Š” ๋กœ์ปฌ ํŒจํ‚ค์ง€ ๊ตฌ์กฐ๋ฅผ ์•ฝ๊ฐ„ ๋ณ€๊ฒฝํ•˜์—ฌ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ์ง€์†์ ์ธ ๋ฆฌํŒฉํ† ๋ง ์‹œ๋„์˜ ์ผํ™˜์œผ๋กœ ๋ชจ๋“  ์ข…๋ฅ˜์˜ ๋ฒ”์œ„๊ฐ€ ์ง€์ •๋˜์ง€ ์•Š์€ ๋ชจ๋“  ์ข…๋ฅ˜์˜ ํŒจํ‚ค์ง€๋ฅผ ์ œ๊ฑฐํ•˜๊ณ  ์ž‘์€ ๋ฒ”์œ„์˜ ํŒจํ‚ค์ง€๋กœ ๋Œ€์ฒดํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ถ„๋ช…ํžˆ ์ด๊ฒƒ์€ NPM์„ ํ˜ผ๋ž€์Šค๋Ÿฝ๊ฒŒ ๋งŒ๋“ค๊ณ  npm ERR! cb() never called! ๋ฒ„๊ทธ๋ฅผ ์ผ์œผ์ผฐ์Šต๋‹ˆ๋‹ค.

๋‚ด package-lock.json ํŒŒ์ผ์„ ์‚ญ์ œํ•˜๊ณ  ํ•ด๋‹น ์‚ญ์ œ๋ฅผ์ด ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ ์›๊ฒฉ ์ง€์ ์œผ๋กœ ํ‘ธ์‹œํ•˜์—ฌ In์ด ์ˆ˜์ • ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ €์—๊ฒŒ ์ด๊ฒƒ์€ VPN์„ ํ†ตํ•ด ํšŒ์‚ฌ ํ”„๋ก์‹œ๋ฅผ ํ†ตํ•ด npm install ์„ ์‹œ๋„ ํ•  ๋•Œ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค (์‹ค์ œ๋กœ ํ”„๋ก์‹œ๋Š” ์ค‘์š”ํ•˜์ง€ ์•Š์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค). ํŒจํ‚ค์ง€๊ฐ€ ๋ฐ”์ด๋„ˆ๋ฆฌ (์˜ˆ : https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-79_binding.node)๋ฅผ ๋‹ค์šด๋กœ๋“œํ•˜๋ ค๊ณ  ํ•  ๋•Œ NPM์ด ์ค‘๋‹จ๋ฉ๋‹ˆ๋‹ค. ์„ค์น˜ ํ›„ ๋‹จ๊ณ„ (ํŒจํ‚ค์ง€์— ๋”ฐ๋ผ ๋‹ค๋ฆ„).

VPN (Global Protect) ๊ณผ ํ”„๋ก์‹œ๋ฅผ ๋ˆ ํ›„ ๋ชจ๋“  ๊ฒƒ์ด ๋ฌธ์ œ์—†์ด ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค.

ํ”„๋ก์‹œ ๋ฐ VPN์ด ์ผœ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ โŒ

$ npm i node-sass
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\---\AppData\Roaming\npm-cache\_logs\2020-03-16T23_37_35_801Z-debug.log

image

image

image

2020-03-16T23_37_35_801Z-debug.log

ํ”„๋ก์‹œ ๋ฐ VPN์ด ๊บผ์ง„ ๊ฒฝ์šฐ โœ”

$ npm i node-sass
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

> [email protected] install C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-79_binding.node
Download complete
Binary saved to C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Caching binary to C:\Users\---\AppData\Roaming\npm-cache\node-sass\4.13.1\win32-x64-79_binding.node

> [email protected] postinstall C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/build.js

Binary found at C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Testing binary
Binary is fine
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 173 packages from 137 contributors and audited 528 packages in 16.034s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

image

ํ”„๋ก์‹œ ๋งŒ ์‚ฌ์šฉ โœ”

$ npm i node-sass
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

> [email protected] install C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-79_binding.node
Download complete
Binary saved to C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Caching binary to C:\Users\---\AppData\Roaming\npm-cache\node-sass\4.13.1\win32-x64-79_binding.node

> [email protected] postinstall C:\Users\---\Desktop\foo\node_modules\node-sass
> node scripts/build.js

Binary found at C:\Users\---\Desktop\foo\node_modules\node-sass\vendor\win32-x64-79\binding.node
Testing binary
Binary is fine
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 173 packages from 137 contributors and audited 528 packages in 16.233s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

image

๊ทธ๋ž˜์„œ, ์—ฐ์—ญ์  ์ถ”๋ฆฌํ•จ์œผ๋กœ์จ, ์š”์ฒญ / ์‘๋‹ต์ด VPN์„ ํ†ตํ•ด ์ฒ˜๋ฆฌ๋˜๋Š” ๋ฐฉ๋ฒ•์„ ํ•จ๊ป˜ ํ•  ์ˆ˜์žˆ๋Š” ๋ญ”๊ฐ€๊ฐ€ ์žˆ์–ด์•ผํ•ฉ๋‹ˆ๋‹ค ...

rm /c/Users/---/AppData/Roaming/npm-cache/node-sass/4.13.1/win32-x64-79_binding.node ํ•˜๊ณ  ๊ฐ ํ…Œ์ŠคํŠธ ์‚ฌ์ด์— ์ƒˆ๋กœ์šด node_modules ๋””๋ ‰ํ„ฐ๋ฆฌ๋กœ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ๋ฌด์‹ค์—์„œ ์ผํ•˜๊ธฐ ๋•Œ๋ฌธ์— ๋ฌธ์ œ๋ฅผ ์ผ์œผํ‚ค์ง€ ์•Š๋Š” ํ”„๋ก์‹œ ๋งŒ ์ฒ˜๋ฆฌํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ด์ œ ์šฐ๋ฆฌ ๋ชจ๋‘ ์žฌํƒ ๊ทผ๋ฌด๋ฅผํ•˜๋‹ˆ์ด ๋ฌธ์ œ์— ๋ถ€๋”ช ํž ๊ธฐํšŒ๊ฐ€ ์ƒ๊ฒผ์Šต๋‹ˆ๋‹ค ... ๋„์›€์ด ๋˜์—ˆ์œผ๋ฉด ์ข‹๊ฒ ๋„ค์š” ๐Ÿ˜…

๋ฒ„์ „ ๋ฐ ์‹œ์Šคํ…œ ์ •๋ณด

  • ์œˆ๋„์šฐ 10
$ node --version
v13.11.0
$ npm --version
6.13.7

darcyclarke ์ด vor 1 Stunde์„ ์ข…๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค.

@darcyclarke ์ด ๋ฌธ์ œ๊ฐ€ ์ผ๋ถ€ ์ปค๋ฐ‹์œผ๋กœ ํ•ด๊ฒฐ ๋˜์—ˆ์Šต๋‹ˆ๊นŒ?

@DanielRuf ์‚ฌ๊ณผ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์ด๊ฒƒ์€ ZenHub (ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ)์˜ ๋ฌธ์ œ ๋ถ„๋ฅ˜์— ํฌํ•จ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋‚˜๋Š” ๊ทธ์— ๋”ฐ๋ผ ๋‹ค์‹œ ์—ด์—ˆ์Šต๋‹ˆ๋‹ค.

๋นˆ expo init ํ”„๋กœ์ ํŠธ๋ฅผ ์„ค์น˜ํ•˜๋ ค๋Š” ๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค. ๋…ธ๋“œ 13.12.0, npm 6.14.5
๋‚ด ํ”„๋กœ์ ํŠธ ํด๋”๋ฅผ Windows Defender ์ œ์™ธ์— ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ด ๋„์›€์ด ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
Settings->Update and Security->Windows Security->Virus & threat protection -> Virus & threat protection settings -> Exclusions ์ „์ฒด ํด๋”๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

์ด๋กœ ์ธํ•ด ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ ํ–ˆ์Šต๋‹ˆ๊นŒ? ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด ๋ฐ”์ด๋Ÿฌ์Šค ๋ฐฑ์‹ ์ด๋‚˜ Windows 10์„ ๊ฐ–๊ณ  ์žˆ์ง€ ์•Š๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ์‹ค์‹œ๊ฐ„ ๋ฐ”์ด๋Ÿฌ์Šค ๋ฐฑ์‹  ์Šค์บ๋„ˆ์—†์ด Linux์™€ macOS์—์„œ๋„ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

์ผ๋ฐ˜์ ์œผ๋กœ ์„ค์น˜ํ•˜๋Š” ๋™์•ˆ ๋ฐ”์ด๋Ÿฌ์Šค ๋ฐฑ์‹ ์„ ๋น„ํ™œ์„ฑํ™”ํ•˜์—ฌ ์•ก์„ธ์Šค / ์ƒ์„ฑ์‹œ ๋ชจ๋“  ๋‹จ์ผ ํŒŒ์ผ์„ ๊ฒ€์‚ฌํ•˜๋ฏ€๋กœ ์„ค์น˜ ์†๋„๋ฅผ ๋†’์ด๊ณ  ๋‚˜์ค‘์— ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ•˜๊ณ  ์ „์ฒด ๊ฒ€์‚ฌ๋ฅผ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

์กฐ๊ธˆ ํ™•์‹คํ•˜์ง€๋งŒ ๋™์ผํ•œ ์˜ค๋ฅ˜๋กœ ์—ฌ๋Ÿฌ ๋ฒˆ ์‹œ๋„ํ•œ ๋‹ค์Œ ๊ทธ๋ ‡๊ฒŒํ–ˆ๊ณ  ๋„์›€์ด๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ธ๋ฑ์‹ฑ๊ณผ ๊ด€๋ จ์ด์žˆ์„ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ•˜๋ฉด์„œ https-proxy ๊ฐ€์น˜ ์„ธํŠธ npm config ์„ค์ •์„ํ•˜์ง€๋งŒ, ํ”„๋ก์‹œ๋ฅผ ๊ฐ€์ง€๊ณ  ๋„คํŠธ์›Œํฌ์—์—†๋Š”,์ด ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ํ”„๋ก์‹œ ๊ฐ’์„ ์‚ญ์ œํ•˜๋ฉด ๋‹ค์‹œ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ๋žŒ๋“ค์—๊ฒŒ์ด ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด npm์— ๋Œ€ํ•œ ํ”„๋ก์‹œ ์„ค์ •์„ ํ™•์ธํ•˜๋ผ๋Š” ์ œ์•ˆ์„ ํฌํ•จํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

npm ๋ฒ„์ „ : 6.17.4
๋…ธ๋“œ ๋ฒ„์ „ : 12.18.3
nvm ๋ฒ„์ „ : 0.35.3

๊ธฐํƒ€ ๊ด€๋ จ ๋ฌธ์ œ :

1696 ๋…„

1671 ๋…„

1740 ๋…„

1737 ๋…„

1731 ๋…„

1666 ๋…„

1647 ๋…„

1625 ๋…„

1608 ๋…„

1605 ๋…„

1552 ๋…„

1546 ๋…„

1531 ๋…„

1505 ๋…„

1466 ๋…„

1464 ๋…„

1720 ๋…„

1748 ๋…„

Windows WSL2์—์„œ ๊ฐ€๋” ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

  • npm ๋ฒ„์ „ : 6.14.8
  • ๋ช…๋ น. npm --unsafe-perm ci
  • ๊ทธ๋Ÿฌ๋‚˜ ๋™์ผํ•œ ์‹œ์Šคํ…œ์—๋Š” WSL2- WSL # 4690์— ๋ช‡ ๊ฐ€์ง€ ssh / git ์—ฐ๊ฒฐ ๋ฌธ์ œ๊ฐ€ ์žˆ์œผ๋ฏ€๋กœ ์šฐ๋ฆฌ์˜ ๊ฒฝ์šฐ npm ๋ฌธ์ œ๊ฐ€ ์•„๋‹ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.
์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
4 / 5 - 1 ๋“ฑ๊ธ‰