node
node copied to clipboard
npm update fails with "Cannot read property 'parent' of undefined"
Hi,
Upgraded to 15.0.1. Getting error while trying to update packages via npm up
command:
1734 verbose stack TypeError: Cannot read property 'parent' of undefined
1734 verbose stack at Arborist.[canPlacePeers] (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1430:14)
1734 verbose stack at Arborist.[canPlaceDep] (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1421:32)
1734 verbose stack at Arborist.[placeDep] (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1061:36)
1734 verbose stack at Arborist.[placeDep] (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1212:41)
1734 verbose stack at Arborist.[placeDep] (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1212:41)
1734 verbose stack at Arborist.[placeDep] (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1212:41)
1734 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:766:46
1734 verbose stack at Array.map (
Thanks,
For the time being, to install your packages you can fall back to yarn. That worked for me.
15.1 has fixed this for me. npm is now at 7.0.8 on MacOS 10.15.7
hi @zehavibarak i wanted to look into this issue but was not able to reproduce. Do you think this is already fixed by now and can be closed?
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open.
Closing this because it has stalled. Feel free to reopen if this issue/PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.