mwittig / npm-license-crawler

Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
BSD 3-Clause "New" or "Revised" License
234 stars 45 forks source link

Error: ENOENT: no such file or directory, lstat #28

Closed trusktr closed 5 years ago

trusktr commented 5 years ago

I tried the example from the README, and it resulted in an error on macOS Mojave:

❯ npm-license-crawler  --exclude ./lib/logging --dependencies --csv licenses.csv
{ Error: ENOENT: no such file or directory, lstat '/Users/trusktr/src/project/lib/logging'
    at Object.lstatSync (fs.js:861:3)
    at /Users/trusktr/.npm-packages/lib/node_modules/npm-license-crawler/lib/directoryreader.js:27:41
    at processTicksAndRejections (internal/process/next_tick.js:74:9)
    at process.runNextTicks [as _tickCallback] (internal/process/next_tick.js:51:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:804:11)
    at internal/main/run_main_module.js:21:11
  errno: -2,
  syscall: 'lstat',
  code: 'ENOENT',
  path:
   '/Users/trusktr/src/project/lib/logging' }
mwittig commented 5 years ago

Hi, there. Thanks for trying npm-license-crawler!

Make sure, the given exclude path is valid. If you run npm-license-crawler from the npm-license-crawler directory the following command line example works for me: npm-license-crawler --exclude ./lib --dependencies --csv licenses.csv

Take-aways for me:

mwittig commented 5 years ago

published npm-license-crawler@0.2.0