Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if package has directory called license #26

Open
deenairn opened this issue Jul 4, 2018 · 0 comments
Open

Error if package has directory called license #26

deenairn opened this issue Jul 4, 2018 · 0 comments

Comments

@deenairn
Copy link

deenairn commented Jul 4, 2018

This is almost certainly an edge case for my workplace, but we have an internally published package where the license is in a directory called "license". This crashes the application with the following log.

I'm happy to create a PR to fix this as it's almost certainly trivial. However, what's the chances of the PR being merged?

C:\Code>node_modules\.bin\bower-license
C:\Code\node_modules\bower-json\node_modules\graceful-fs\polyfills.js:224
      throw er
      ^

Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:675:18)
    at Object.fs.readSync (C:\Code\node_modules\bower-json\node_modules\graceful-fs\polyfills.js:218:23)
    at tryReadSync (fs.js:540:20)
    at Object.fs.readFileSync (fs.js:583:19)
    at module.exports (C:\Code\node_modules\package-license\index.js:25:45)
    at C:\Code\node_modules\bower-license\lib\index.js:60:41
    at C:\Code\node_modules\npm-license\lib\index.js:134:9
    at C:\Code\node_modules\read-installed\read-installed.js:142:5
    at C:\Code\node_modules\read-installed\read-installed.js:263:14
    at asyncMap (C:\Code\node_modules\slide\lib\async-map.js:27:18)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant