ritz078 / starring

⭐️ Automatically star the npm-packages that you are using on GitHub.
MIT License
155 stars 8 forks source link

Path must be a string or Buffer #5

Closed ajsb85 closed 7 years ago

ajsb85 commented 7 years ago
C:\>starring --all
fs.js:274
  binding.open(pathModule._makeLong(path),
          ^

TypeError: path must be a string or Buffer
    at Object.fs.readFile (fs.js:274:11)
    at C:\Users\user\AppData\Roaming\npm\node_modules\starring\node_modules\load-pkg\index.js:26:8
    at C:\Users\user\AppData\Roaming\npm\node_modules\starring\node_modules\find-file-up\index.js:50:9
    at C:\Users\user\AppData\Roaming\npm\node_modules\starring\node_modules\find-file-up\index.js:93:7
    at FSReqWrap.oncomplete (fs.js:112:15)
ritz078 commented 7 years ago

This error is because you not inside any project folder. Definitely a better error message would help.

ritz078 commented 7 years ago

Let me know if fixed in the latest version.

ajsb85 commented 7 years ago

✖ No package.json found. Ensure that you are inside the project directory.

Fixed 👍