npm ERR! Cannot read properties of null (reading 'matches')
Provide a broad description of the bug.
Reduced test-case
npm install --save-dev html-validate cypress-html-validate
Configuration
Expected result
Installation to succeed
Actual result
In the terminal:
npm ERR! Cannot read properties of null (reading 'matches')
In the logfile:
100 silly placeDep ROOT @babel/code-frame@7.23.5 OK for: html-validate@8.9.1 want: ^7.10.0
101 timing idealTree Completed in 7016ms
102 timing command:install Completed in 7023ms
103 verbose stack TypeError: Cannot read properties of null (reading 'matches')
103 verbose stack at Link.matches (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1115:41)
103 verbose stack at Link.canDedupe (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\node.js:1069:15)
103 verbose stack at PlaceDep.pruneDedupable (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:426:14)
103 verbose stack at new PlaceDep (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:278:14)
103 verbose stack at #buildDepStep (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:933:18)
103 verbose stack at async Arborist.buildIdealTree (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:196:7)
103 verbose stack at async Promise.all (index 1)
103 verbose stack at async Arborist.reify (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:159:5)
103 verbose stack at async Install.exec (C:\Users\username\AppData\Roaming\npm\node_modules\npm\lib\commands\install.js:149:5)
103 verbose stack at async module.exports (C:\Users\username\AppData\Roaming\npm\node_modules\npm\lib\cli-entry.js:61:5)
104 verbose cwd D:\TA\app3\frontend\cypress
105 verbose Windows_NT 10.0.22621
106 verbose node v20.4.0
107 verbose npm v9.8.0
108 error Cannot read properties of null (reading 'matches')
109 verbose exit 1
Version
-
html-validate
: 8.9.1 want 7.10.0? -
html-validate-angular
: -
html-validate-vue
: -
html-validate-protractor
: . any other relevant plugin: cypress (latest)
4 silly placeDep ROOT cypress-html-validate@6.1.0 OK for: @dpc-oa/pro-frontend@0.0.0 want: * 75 silly placeDep ROOT html-validate@8.9.1 OK for: cypress-html-validate@6.1.0 want: ^5 || ^6 || ^7 || ^8