Running in folder that does not contain package.json gives unhelpful error message
feross opened this issue · comments
Originally reported here: #50 (comment)
✖ Error: path must be a string or Buffer
Found a bug? Open an issue at https://github.com/feross/thanks
TypeError: path must be a string or Buffer
at fs.readFile (fs.js:358:11)
at P (/Users/feross/code/thanks/node_modules/pify/index.js:49:6)
at new Promise (<anonymous>)
at /Users/feross/code/thanks/node_modules/pify/index.js:11:9
at ret (/Users/feross/code/thanks/node_modules/pify/index.js:72:32)
at readDirectPkgNames (/Users/feross/code/thanks/src/cmd.js:392:24)
at <anonymous>
1.5.1