read-pkg is required by lib/read-package-json which is required by lib/index.js
Unfortunately brew doesn't have a node 14 formula just yet so I can't install node14 via brew. Once I install node14 I'll give this a test locally and see if it also errors out there.
I destroyed the node_modules directory, reinstalled, and the error no longer happens. I think the error happened because node_modules still had node@v12 modules.
(note that "foo" is not a real command)
Github search doesn't return any results for "pathType"
I grepped for pathType in the module and found this:
read-pkg is required by
lib/read-package-json
which is required bylib/index.js
Unfortunately brew doesn't have a node 14 formula just yet so I can't install node14 via brew. Once I install node14 I'll give this a test locally and see if it also errors out there.