Add ENOTDIR check. (may need to be added to more checks)
Add ENOTDIR check. (may need to be added to more checks)

Volune/npm,thomblake/npm,kimshinelove/naver-npm,kriskowal/npm,kemitchell/npm,cchamberlain/npm,chadnickbok/npm,midniteio/npm,midniteio/npm,kriskowal/npm,kemitchell/npm,rsp/npm,xalopp/npm,yibn2008/npm,segment-boneyard/npm,yyx990803/npm,thomblake/npm,segmentio/npm,Volune/npm,evocateur/npm,segment-boneyard/npm,haggholm/npm,haggholm/npm,kimshinelove/naver-npm,segment-boneyard/npm,segrey/npm,misterbyrne/npm,TimeToogo/npm,cchamberlain/npm-msys2,cchamberlain/npm-msys2,xalopp/npm,Volune/npm,evocateur/npm,kemitchell/npm,kimshinelove/naver-npm,rsp/npm,cchamberlain/npm,chadnickbok/npm,DIREKTSPEED-LTD/npm,ekmartin/npm,yibn2008/npm,misterbyrne/npm,cchamberlain/npm-msys2,lxe/npm,princeofdarkness76/npm,ekmartin/npm,xalopp/npm,rsp/npm,ekmartin/npm,yyx990803/npm,evanlucas/npm,TimeToogo/npm,cchamberlain/npm,yibn2008/npm,segmentio/npm,TimeToogo/npm,evanlucas/npm,segrey/npm,evocateur/npm,segrey/npm,haggholm/npm,chadnickbok/npm,yyx990803/npm,yodeyer/npm,yodeyer/npm,DIREKTSPEED-LTD/npm,DaveEmmerson/npm,segmentio/npm,DaveEmmerson/npm,lxe/npm,thomblake/npm,DaveEmmerson/npm,yodeyer/npm,midniteio/npm,princeofdarkness76/npm,DIREKTSPEED-LTD/npm,lxe/npm,misterbyrne/npm,evanlucas/npm,princeofdarkness76/npm,kriskowal/npm