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

TypeError: Cannot read property 'type' of undefined #2

Open
vielmetti opened this issue Aug 3, 2019 · 0 comments
Open

TypeError: Cannot read property 'type' of undefined #2

vielmetti opened this issue Aug 3, 2019 · 0 comments

Comments

@vielmetti
Copy link
Contributor

I'm trying to check the licenses for node-red, which I've installed in /usr/lib/node_modules/node-red (with npm install -g. And I'm getting this
somewhat mysterious error message.

It looks like yargs has the problem.

emv@DESKTOP-L7STI4S:~$ delice /usr/lib/node_modules/node-red
/usr/lib/node_modules/delice/node_modules/yargs/yargs.js:1163
      else throw err
           ^

TypeError: Cannot read property 'type' of undefined
    at parse (/usr/lib/node_modules/delice/node_modules/liblice/lib/parseLicense.js:15:52)
    at /usr/lib/node_modules/delice/node_modules/liblice/exports/modules.js:12:20
    at Array.forEach (<anonymous>)
    at buildObjectExport (/usr/lib/node_modules/delice/node_modules/liblice/exports/modules.js:10:27)
    at buildObjectLicenseReport (/usr/lib/node_modules/delice/node_modules/liblice/exports/licenses.js:4:16)
    at buildPrettyPrint (/usr/lib/node_modules/delice/commands/default.js:29:27)
    at Object.exports.handler (/usr/lib/node_modules/delice/commands/default.js:25:3)
    at Object.runCommand (/usr/lib/node_modules/delice/node_modules/yargs/lib/command.js:242:26)
    at Object.parseArgs [as _parseArgs] (/usr/lib/node_modules/delice/node_modules/yargs/yargs.js:1087:28)
    at Object.get [as argv] (/usr/lib/node_modules/delice/node_modules/yargs/yargs.js:1012:21)
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