I am currently facing an issue while trying to check the version status of my npm installed global packages. When I run the command npm outdated -g --depth=0
in the terminal, I encounter the following error:
npm ERR! Cannot read property 'length' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dangranger/.npm/_logs/2019-03-14T21_58_37_962Z-debug.log
The log file at /Users/dangranger/.npm/_logs/2019-03-14T21_58_37_962Z-debug.log contains the following information:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/11.11.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'outdated',
1 verbose cli '-g' ]
2 info using <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="abc5dbc6eb9d8592859b">[email protected]</a>
3 info using <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="127c7d7677526423233c23233c22">[email protected]</a>
4 verbose npm-session 6182351d371bfeb5
...
38 verbose exit [ 1, true ]
If anyone has a solution to this problem, your help would be greatly appreciated.
Thank you!