cutenode / cutenode/delice

TypeError: Cannot read property 'type' of undefined

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
54
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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 ()
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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.