Open dwelch2344 opened 1 year ago
Please change the title of this bug because it makes search results confusing.
I've got a small reproducer as follows:
{
"dependencies": {
"@timwolla/npm-auditor-crash": "git+https://github.com/TimWolla/npm-auditor-crash.git#219613a299f70d03e1bbe48aa19aae8245fd0e1f"
}
}
Attempting to npm install --verbose
that package.json results in:
npm verb cli /usr/local/bin/node /usr/local/bin/npm
npm info using npm@10.2.4
npm info using node@v21.5.0
npm verb title npm install
npm verb argv "install" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/home/node/.npm/_logs/2024-11-12T22_56_32_269Z-
npm verb logfile /home/node/.npm/_logs/2024-11-12T22_56_32_269Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/npm 391ms (cache miss)
npm http fetch GET 200 https://codeload.github.com/TimWolla/npm-auditor-crash/tar.gz/219613a299f70d03e1bbe48aa19aae8245fd0e1f 369ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard 91ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/lodash-es 78ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-engine 261ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-core 270ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-ui 276ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-widget 282ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-utils 1177ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 65ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-parse 69ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-enter 143ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-typing 150ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/vanilla-colorful 551ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-name 41ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-name 49ms (cache miss)
npm WARN skipping integrity check for git dependency ssh://git@github.com/TimWolla/npm-auditor-crash.git
npm http fetch GET 200 https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz 176ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/color-parse/-/color-parse-1.4.2.tgz 185ms (cache miss)
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 210ms
npm http fetch GET 200 https://codeload.github.com/TimWolla/npm-auditor-crash/tar.gz/219613a299f70d03e1bbe48aa19aae8245fd0e1f 296ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz 334ms (cache miss)
npm notice
npm notice New minor version of npm available! 10.2.4 -> 10.9.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
npm notice Run npm install -g npm@10.9.0 to update!
npm notice
npm verb stack TypeError: Cannot read properties of null (reading 'name')
npm verb stack at npa (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/lib/npa.js:27:20)
npm verb stack at FetcherBase.get (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetcher.js:482:16)
npm verb stack at Object.packument (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/index.js:18:30)
npm verb stack at [packument] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/index.js:109:22)
npm verb stack at [calculate] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/index.js:57:23)
npm verb stack at Calculator.calculate (/usr/local/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/index.js:44:31)
npm verb stack at [init] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:177:44)
npm verb stack at async AuditReport.run (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:109:7)
npm verb cwd /pwd
npm verb Linux 5.4.0-200-generic
npm verb node v21.5.0
npm verb npm v10.2.4
npm ERR! Cannot read properties of null (reading 'name')
npm verb exit 1
npm verb unfinished npm timer command:install 1731452192729
npm verb unfinished npm timer reify 1731452192738
npm verb unfinished npm timer reify:audit 1731452195399
npm verb unfinished npm timer reify:unpack 1731452195407
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-typing 1731452195407
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-enter 1731452195407
npm verb unfinished npm timer reifyNode:node_modules/vanilla-colorful 1731452195407
npm verb unfinished npm timer reifyNode:node_modules/lodash-es 1731452195408
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-widget 1731452195408
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-utils 1731452195408
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-ui 1731452195408
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-engine 1731452195408
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-core 1731452195408
npm verb unfinished npm timer reifyNode:node_modules/@ckeditor/ckeditor5-clipboard 1731452195408
npm verb unfinished npm timer reifyNode:node_modules/@timwolla/npm-auditor-crash 1731452195408
npm verb unfinished npm timer auditReport:init 1731452195617
npm verb unfinished npm timer metavuln:calculate:security-advisory:null:AUHN8mUB/zS73/ilY+56DN+cUIjNv5mqTVQqBZdfd410fiLPDwyzQN+VPBdyNKTwzI3EEPxLgIiqKqO+5FeR2g== 1731452195794
npm verb unfinished npm timer metavuln:cache:get:security-advisory:null:i1/uaLXorpivIYmND8U3+n94yNl0GNc4aotGowkvEWh8trRTcp66EkaoippRCdJRzx5oENksdeH/YDhDHuvxBw== 1731452195794
npm verb unfinished npm timer metavuln:packument:null 1731452195794
npm verb code 1
For reference, the package.json
and package-lock.json
of the npm-auditor-crash repository are as follows:
The output for npm 10.9.0 is different, but equally unhelpful:
npm verbose cli /usr/local/bin/node /usr/local/bin/npm
npm info using npm@10.9.0
npm info using node@v23.1.0
npm verbose title npm install
npm verbose argv "install" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-11-12T23_02_47_816Z-
npm verbose logfile /root/.npm/_logs/2024-11-12T23_02_47_816Z-debug-0.log
(node:48) ExperimentalWarning: CommonJS module /usr/local/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /usr/local/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
npm http fetch GET 200 https://codeload.github.com/TimWolla/npm-auditor-crash/tar.gz/219613a299f70d03e1bbe48aa19aae8245fd0e1f 305ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard 11ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash-es 12ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-ui 20ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-core 38ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-utils 59ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-widget 35ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-engine 74ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-parse 13ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/vanilla-colorful 16ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 21ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-typing 12ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-enter 32ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 8ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 9ms (cache hit)
npm warn skipping integrity check for git dependency ssh://git@github.com/TimWolla/npm-auditor-crash.git
npm http fetch GET 200 https://codeload.github.com/TimWolla/npm-auditor-crash/tar.gz/219613a299f70d03e1bbe48aa19aae8245fd0e1f 163ms (cache revalidated)
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 306ms
npm http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard 85ms (cache hit)
npm verbose cwd /pwd
npm verbose os Linux 5.4.0-200-generic
npm verbose node v23.1.0
npm verbose npm v10.9.0
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-11-12T23_02_47_816Z-debug-0.log
Debug log:
0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using npm@10.9.0
2 info using node@v23.1.0
3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc
4 silly config load:file:/pwd/.npmrc
5 silly config load:file:/root/.npmrc
6 silly config load:file:/usr/local/etc/npmrc
7 verbose title npm install
8 verbose argv "install" "--loglevel" "verbose"
9 verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-11-12T23_02_47_816Z-
10 verbose logfile /root/.npm/_logs/2024-11-12T23_02_47_816Z-debug-0.log
11 silly logfile done cleaning log files
12 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
13 silly idealTree buildDeps
14 silly fetch manifest @timwolla/npm-auditor-crash@git+https://github.com/TimWolla/npm-auditor-crash.git#219613a299f70d03e1bbe48aa19aae8245fd0e1f
15 http fetch GET 200 https://codeload.github.com/TimWolla/npm-auditor-crash/tar.gz/219613a299f70d03e1bbe48aa19aae8245fd0e1f 305ms (cache revalidated)
16 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
17 silly placeDep ROOT @timwolla/npm-auditor-crash@ OK for: want: git+https://github.com/TimWolla/npm-auditor-crash.git#219613a299f70d03e1bbe48aa19aae8245fd0e1f
18 silly fetch manifest @ckeditor/ckeditor5-clipboard@^41.3.0
19 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard cache-miss
20 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard 11ms (cache hit)
21 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard set size:1511989 disposed:false
22 silly placeDep ROOT @ckeditor/ckeditor5-clipboard@41.4.2 OK for: node_modules/@timwolla/npm-auditor-crash want: ^41.3.0
23 silly fetch manifest lodash-es@4.17.21
24 silly packumentCache full:https://registry.npmjs.org/lodash-es cache-miss
25 silly fetch manifest @ckeditor/ckeditor5-ui@41.4.2
26 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-ui cache-miss
27 silly fetch manifest @ckeditor/ckeditor5-core@41.4.2
28 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-core cache-miss
29 http fetch GET 200 https://registry.npmjs.org/lodash-es 12ms (cache hit)
30 silly packumentCache full:https://registry.npmjs.org/lodash-es set size:135180 disposed:false
31 silly fetch manifest @ckeditor/ckeditor5-utils@41.4.2
32 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-utils cache-miss
33 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-ui 20ms (cache hit)
34 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-ui set size:1434293 disposed:false
35 silly fetch manifest @ckeditor/ckeditor5-engine@41.4.2
36 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-engine cache-miss
37 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-core 38ms (cache hit)
38 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-core set size:1519737 disposed:false
39 silly fetch manifest @ckeditor/ckeditor5-widget@41.4.2
40 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-widget cache-miss
41 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-utils 59ms (cache hit)
42 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-utils set size:1282881 disposed:false
43 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-widget 35ms (cache hit)
44 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-widget set size:1500513 disposed:false
45 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-engine 74ms (cache hit)
46 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-engine set size:1487283 disposed:false
47 silly placeDep ROOT @ckeditor/ckeditor5-core@41.4.2 OK for: @ckeditor/ckeditor5-clipboard@41.4.2 want: 41.4.2
48 silly placeDep ROOT @ckeditor/ckeditor5-engine@41.4.2 OK for: @ckeditor/ckeditor5-clipboard@41.4.2 want: 41.4.2
49 silly placeDep ROOT @ckeditor/ckeditor5-ui@41.4.2 OK for: @ckeditor/ckeditor5-clipboard@41.4.2 want: 41.4.2
50 silly placeDep ROOT @ckeditor/ckeditor5-utils@41.4.2 OK for: @ckeditor/ckeditor5-clipboard@41.4.2 want: 41.4.2
51 silly placeDep ROOT @ckeditor/ckeditor5-widget@41.4.2 OK for: @ckeditor/ckeditor5-clipboard@41.4.2 want: 41.4.2
52 silly placeDep ROOT lodash-es@4.17.21 OK for: @ckeditor/ckeditor5-clipboard@41.4.2 want: 4.17.21
53 silly fetch manifest color-parse@1.4.2
54 silly packumentCache full:https://registry.npmjs.org/color-parse cache-miss
55 silly fetch manifest color-convert@2.0.1
56 silly packumentCache full:https://registry.npmjs.org/color-convert cache-miss
57 silly fetch manifest vanilla-colorful@0.7.2
58 silly packumentCache full:https://registry.npmjs.org/vanilla-colorful cache-miss
59 http fetch GET 200 https://registry.npmjs.org/color-parse 13ms (cache hit)
60 silly packumentCache full:https://registry.npmjs.org/color-parse set size:50034 disposed:false
61 silly fetch manifest @ckeditor/ckeditor5-enter@41.4.2
62 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-enter cache-miss
63 http fetch GET 200 https://registry.npmjs.org/vanilla-colorful 16ms (cache hit)
64 silly packumentCache full:https://registry.npmjs.org/vanilla-colorful set size:114227 disposed:false
65 silly fetch manifest @ckeditor/ckeditor5-typing@41.4.2
66 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-typing cache-miss
67 http fetch GET 200 https://registry.npmjs.org/color-convert 21ms (cache hit)
68 silly packumentCache full:https://registry.npmjs.org/color-convert set size:61781 disposed:false
69 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-typing 12ms (cache hit)
70 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-typing set size:1419909 disposed:false
71 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-enter 32ms (cache hit)
72 silly packumentCache full:https://registry.npmjs.org/@ckeditor%2fckeditor5-enter set size:1380583 disposed:false
73 silly placeDep ROOT color-convert@2.0.1 OK for: @ckeditor/ckeditor5-ui@41.4.2 want: 2.0.1
74 silly placeDep ROOT color-parse@1.4.2 OK for: @ckeditor/ckeditor5-ui@41.4.2 want: 1.4.2
75 silly placeDep ROOT vanilla-colorful@0.7.2 OK for: @ckeditor/ckeditor5-ui@41.4.2 want: 0.7.2
76 silly fetch manifest color-name@~1.1.4
77 silly packumentCache full:https://registry.npmjs.org/color-name cache-miss
78 silly fetch manifest color-name@^1.0.0
79 silly packumentCache full:https://registry.npmjs.org/color-name cache-miss
80 http fetch GET 200 https://registry.npmjs.org/color-name 8ms (cache hit)
81 silly packumentCache full:https://registry.npmjs.org/color-name set size:16325 disposed:false
82 http fetch GET 200 https://registry.npmjs.org/color-name 9ms (cache hit)
83 silly packumentCache full:https://registry.npmjs.org/color-name set size:16325 disposed:false
84 silly packumentCache full:https://registry.npmjs.org/color-name dispose
85 silly placeDep ROOT @ckeditor/ckeditor5-enter@41.4.2 OK for: @ckeditor/ckeditor5-widget@41.4.2 want: 41.4.2
86 silly placeDep ROOT @ckeditor/ckeditor5-typing@41.4.2 OK for: @ckeditor/ckeditor5-widget@41.4.2 want: 41.4.2
87 silly placeDep ROOT color-name@1.1.4 OK for: color-convert@2.0.1 want: ~1.1.4
88 silly reify moves {}
89 silly audit bulk request {
89 silly audit '@ckeditor/ckeditor5-clipboard': [ '41.4.2' ],
89 silly audit '@ckeditor/ckeditor5-core': [ '41.4.2' ],
89 silly audit '@ckeditor/ckeditor5-engine': [ '41.4.2' ],
89 silly audit '@ckeditor/ckeditor5-ui': [ '41.4.2' ],
89 silly audit '@ckeditor/ckeditor5-utils': [ '41.4.2' ],
89 silly audit '@ckeditor/ckeditor5-widget': [ '41.4.2' ],
89 silly audit 'lodash-es': [ '4.17.21' ],
89 silly audit 'color-convert': [ '2.0.1' ],
89 silly audit 'color-parse': [ '1.4.2' ],
89 silly audit 'vanilla-colorful': [ '0.7.2' ],
89 silly audit '@ckeditor/ckeditor5-enter': [ '41.4.2' ],
89 silly audit '@ckeditor/ckeditor5-typing': [ '41.4.2' ],
89 silly audit 'color-name': [ '1.1.4' ]
89 silly audit }
90 warn skipping integrity check for git dependency ssh://git@github.com/TimWolla/npm-auditor-crash.git
91 silly tarball no local data for @ckeditor/ckeditor5-enter@https://registry.npmjs.org/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-41.4.2.tgz. Extracting by manifest.
92 silly tarball no local data for @ckeditor/ckeditor5-typing@https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-41.4.2.tgz. Extracting by manifest.
93 silly tarball no local data for vanilla-colorful@https://registry.npmjs.org/vanilla-colorful/-/vanilla-colorful-0.7.2.tgz. Extracting by manifest.
94 silly tarball no local data for lodash-es@https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz. Extracting by manifest.
95 silly tarball no local data for @ckeditor/ckeditor5-widget@https://registry.npmjs.org/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-41.4.2.tgz. Extracting by manifest.
96 silly tarball no local data for @ckeditor/ckeditor5-engine@https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-41.4.2.tgz. Extracting by manifest.
97 silly tarball no local data for @ckeditor/ckeditor5-ui@https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-41.4.2.tgz. Extracting by manifest.
98 silly tarball no local data for @ckeditor/ckeditor5-utils@https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-41.4.2.tgz. Extracting by manifest.
99 silly tarball no local data for @ckeditor/ckeditor5-core@https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-41.4.2.tgz. Extracting by manifest.
100 silly tarball no local data for @ckeditor/ckeditor5-clipboard@https://registry.npmjs.org/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-41.4.2.tgz. Extracting by manifest.
101 http fetch GET 200 https://codeload.github.com/TimWolla/npm-auditor-crash/tar.gz/219613a299f70d03e1bbe48aa19aae8245fd0e1f 163ms (cache revalidated)
102 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 306ms
103 silly audit report {
103 silly audit report '@ckeditor/ckeditor5-clipboard': [
103 silly audit report {
103 silly audit report id: 1100076,
103 silly audit report url: 'https://github.com/advisories/GHSA-rgg8-g5x8-wr9v',
103 silly audit report title: 'Cross-site scripting (XSS) in the clipboard package',
103 silly audit report severity: 'moderate',
103 silly audit report vulnerable_versions: '>=40.0.0 <43.1.1',
103 silly audit report cwe: [Array],
103 silly audit report cvss: [Object]
103 silly audit report }
103 silly audit report ]
103 silly audit report }
104 silly packumentCache corgi:https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard cache-miss
105 silly packumentCache heap:2197815296 maxSize:549453824 maxEntrySize:274726912
106 http fetch GET 200 https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard 85ms (cache hit)
107 silly packumentCache corgi:https://registry.npmjs.org/@ckeditor%2fckeditor5-clipboard set size:737515 disposed:false
108 verbose cwd /pwd
109 verbose os Linux 5.4.0-200-generic
110 verbose node v23.1.0
111 verbose npm v10.9.0
112 verbose exit 1
113 verbose code 1
114 error A complete log of this run can be found in: /root/.npm/_logs/2024-11-12T23_02_47_816Z-debug-0.log
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I've ended up in a situation with a project using private npm repos, aliases (
"foo": "npm:@other/foo"
) andoverrides
wherenpm i
fails under 2 conditions:package.json
For some reason I'm still trying to reproduce, under this scenario the
edgeIn.from
node has anull
name - causing subsequence calls to blow up when trying to report.The end result is a super burly stacktrace, particularly because you're not sure if its your deps / transitive deps / etc.
Expected Behavior
A helpful error message like "Your dependency / packument / etc is broken"
Particularly before kicking off the call to
this.calculator.calculate(..)
https://github.com/npm/cli/blob/2e4b4ad8bef158def1b2302846ab294fe7a83de4/workspaces/arborist/lib/audit-report.js#L172-L186Steps To Reproduce
I'm working on a reproduction I can share, but in the meantime wanted to raise here in the meantime as a check for
dep.packageName
probably is universally a good thing.Environment