KyleAMathews / facebook-export

Tools to help administer your Facebook groups
MIT License
104 stars 29 forks source link

commands errors unless '~/groupsMetaData' is populated by 'list' command. #21

Open haysclark opened 7 years ago

haysclark commented 7 years ago

Thanks for authoring this tool! I did find it rather confusing at first that I was getting errors. While I have used NPM and Node for a while, it's always frustrating when you hit a ton of errors. I ran into a bunch when just trying to install this tool from child packages. One I rolled back to node 5.5.0 I was finally able to get things to start running. However, I was just jumping to the command I wanted to run.

☺  facebook-export -a [my_token] -g [my_gpr_id] -d

However, this throws this error on first run, OR if you delete the '~/groupsMetaData' folder.

events.js:141
      throw er; // Unhandled 'error' event
      ^
OpenError: IO error: /Users/myuser/.facebook_export/groupsMetaData/LOCK: No such file or directory
    at /Users/myuser/.nvm/versions/node/v5.4.0/lib/node_modules/facebook-export/node_modules/levelup/lib/levelup.js:114:34

So, yes the workaround is, run this command first to generate a list:

facebook-export -a [my_token] -l