npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.45k stars 3.14k forks source link

one new issue #3726

Closed ghost closed 3 years ago

ghost commented 3 years ago

i tried to install discord.js but this happened

~ $ npm install discord.js
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm ERR! Exit handler never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/cli/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     /data/data/com.termux/files/home/.npm/_logs/2021-09-08T10_28_31_142Z-debug.log




and then i checked the log file

/data/data/com.termux/files/home/.npm/_logs/2021-09-08T10_28_31_142Z-debug.log




these are my logs

0 verbose cli [                                                                                                       0 verbose cli   '/data/data/com.termux/files/usr/bin/node',                                                           0 verbose cli   '/data/data/com.termux/files/usr/bin/npm',
0 verbose cli   'install',
0 verbose cli   'discord.js'
0 verbose cli ]
1 info using npm@7.22.0
2 info using node@v14.15.4
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 4ms
5 timing config:load:file:/data/data/com.termux/files/usr/lib/node_modules/npm/npmrc Completed in 4ms
6 timing config:load:builtin Completed in 4ms
7 timing config:load:cli Completed in 8ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 7ms
10 timing config:load:file:/data/data/com.termux/files/home/.npmrc Completed in 6ms
11 timing config:load:user Completed in 7ms
12 timing config:load:file:/data/data/com.termux/files/usr/etc/npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:credentials Completed in 6ms
16 timing config:load:setEnvs Completed in 3ms
17 timing config:load Completed in 42ms
18 timing npm:load:configload Completed in 43ms
19 timing npm:load:setTitle Completed in 0ms
20 timing npm:load:setupLog Completed in 2ms
21 timing config:load:flatten Completed in 9ms
22 timing npm:load:cleanupLog Completed in 8ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 1ms
25 timing npm:load Completed in 68ms
26 timing arborist:ctor Completed in 7ms
27 timing idealTree:init Completed in 129ms
28 warn old lockfile The package-lock.json file was created with an old version of npm,                               28 warn old lockfile so supplemental metadata must be fetched from the registry.
28 warn old lockfile
28 warn old lockfile This is a one-time fix-up, please be patient...                                                  29 timing npm Completed in 1577ms                                                                                     30 verbose unfinished npm timer command:install 1631096910758                                                         31 verbose unfinished npm timer reify 1631096910769
32 verbose unfinished npm timer reify:loadTrees 1631096910847                                                         33 verbose unfinished npm timer idealTree 1631096910849                                                               34 verbose unfinished npm timer idealTree:inflate 1631096910980
35 info ok                                                                                                            36 error Exit handler never called!                                                                                   37 error This is an error with npm itself. Please report this error at:
38 error <https://github.com/npm/cli/issues>
lukekarrys commented 3 years ago

Closing: this error can arise for a number of reasons; Please read [this document](https://github.com/npm/cli/wiki/%22cb()-never-called%3F-Exit-handler-never-called%3F-I'm-having-the-same-problem!%22) & refile an issue with as much information as possible if you're able to consistently reproduce this error.