md-file-tree icon indicating copy to clipboard operation
md-file-tree copied to clipboard

Error when attempting to run from npm package

Open Vivraan opened this issue 4 years ago • 0 comments

Problem

I get this eror when I try to run it for the first time.

PS C:\Users\shiva> md-file-tree
C:\Users\shiva\AppData\Roaming\npm\node_modules\md-file-tree\index.js:28
        Object.keys(result).sort().forEach(key => {
               ^

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at parseResult (C:\Users\shiva\AppData\Roaming\npm\node_modules\md-file-tree\index.js:28:16)
    at C:\Users\shiva\AppData\Roaming\npm\node_modules\md-file-tree\index.js:42:9
    at C:\Users\shiva\AppData\Roaming\npm\node_modules\md-file-tree\walker.js:16:21
    at FSReqCallback.oncomplete (fs.js:156:23)

#Info

Version: [email protected] Installation: global

Vivraan avatar Aug 29 '20 07:08 Vivraan