Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: issue with LRU cache, cannot execute git-cz #973

Open
DES-Destry opened this issue May 15, 2023 · 0 comments
Open

bug: issue with LRU cache, cannot execute git-cz #973

DES-Destry opened this issue May 15, 2023 · 0 comments

Comments

@DES-Destry
Copy link

On git-cz executing error occuring:

npm ERR! maxAge must be a number

Early all works fine, but now I have troubles with LRU cache.

Npm full log:

0 verbose cli /Users/destry.unimaster/.nvm/versions/node/v18.16.0/bin/node /Users/destry.unimaster/Develop/backend/*/node_modules/npm/bin/npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/Users/destry.unimaster/Develop/backend/*/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/Users/destry.unimaster/Develop/backend/*/.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:/Users/destry.unimaster/.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/Users/destry.unimaster/.nvm/versions/node/v18.16.0/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 0ms
16 timing config:load Completed in 7ms
17 timing npm:load:configload Completed in 7ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm exec lint-staged
21 verbose argv "exec" "--" "lint-staged"
22 timing npm:load:setTitle Completed in 5ms
23 timing config:load:flatten Completed in 1ms
24 timing npm:load:display Completed in 2ms
25 verbose logfile logs-max:10 dir:/Users/destry.unimaster/.npm/_logs/2023-05-15T05_53_23_330Z-
26 verbose logfile /Users/destry.unimaster/.npm/_logs/2023-05-15T05_53_23_330Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 19ms
31 silly logfile start cleaning logs, removing 2 files
32 verbose stack TypeError: maxAge must be a number
32 verbose stack     at LRUCache.set (/Users/destry.unimaster/Develop/backend/*/node_modules/npm/node_modules/lru-cache/index.js:157:13)
32 verbose stack     at GetAddrInfoReqWrap.callback (/Users/destry.unimaster/Develop/backend/*/node_modules/npm/node_modules/make-fetch-happen/lib/dns.js:45:19)
32 verbose stack     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:8)
33 verbose cwd /Users/destry.unimaster/Develop/backend/*
34 verbose Darwin 22.4.0
35 verbose node v18.16.0
36 verbose npm  v9.6.5
37 error maxAge must be a number
38 verbose exit 1
39 timing npm Completed in 162ms
40 verbose unfinished npm timer command:exec 1684130003462
41 verbose code 1
42 error A complete log of this run can be found in: /Users/destry.unimaster/.npm/_logs/2023-05-15T05_53_23_330Z-debug-0.log

Steps to reproduce:

  • Just run git-cz

npm version output:

{
  npm: '9.5.1',
  node: '18.16.0',
  acorn: '8.8.2',
  ada: '1.0.4',
  ares: '1.19.0',
  brotli: '1.0.9',
  cldr: '42.0',
  icu: '72.1',
  llhttp: '6.0.10',
  modules: '108',
  napi: '8',
  nghttp2: '1.52.0',
  nghttp3: '0.7.0',
  ngtcp2: '0.8.1',
  openssl: '3.0.8+quic',
  simdutf: '3.2.2',
  tz: '2022g',
  undici: '5.21.0',
  unicode: '15.0',
  uv: '1.44.2',
  uvwasi: '0.0.15',
  v8: '10.2.154.26-node.26',
  zlib: '1.2.13'
}

OS: macOS Ventura 13.3.1 (a)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant