npm outdated -g --depth=0 gives err! Cannot read property 'length' of undefined

(Shin) #1

As you can see it in the following image, when I run npm outdated -g --depth=0 it returns an error.
How can I fix this?

0 Likes

(Shin) #2

Ok, I uninstall eslint and reinstall it again. Then it does not give any error.
Thanks.

1 Like

(John Gee) #3

Thanks for update. A matching issue was reported previously here, and there is a fix coming: 'npm outdated' throw an error (Cannot read property 'length' of undefined)

0 Likes

(John Gee) #4

Landing soon: Release: npm@6.9.1-next.0

0 Likes

(Shin) #5

Thanks. Updating to npm 6.9.1 fixed the problem. npm i -g npm@next.

1 Like

(system) closed #6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

0 Likes