yeoman / doctor

Detect potential issues with users system that could prevent Yeoman from working correctly
http://yeoman.io
BSD 2-Clause "Simplified" License
61 stars 17 forks source link

fix pnpm postinstall error #39

Closed ghost closed 6 years ago

ghost commented 6 years ago

When using pnpm with rush on a Mac, the yeoman-doctor postinstall step fails. This is due to fixPath() not handling the 'normal' error code ENOTDIR, in addition to ENOENT.

Adding ENOTDIR as an allowed error resolves the problem, while keeping the logical intent of the function unchanged.

SBoudrias commented 6 years ago

Thanks!!