lambda-mongodb-s3-backup icon indicating copy to clipboard operation
lambda-mongodb-s3-backup copied to clipboard

Cannot find module 'zip-folder'

Open borenstein opened this issue 7 years ago • 1 comments

I followed the exact instructions provided and got the error below when I tested the function. I then ran "npm install zip-folder" and repeated the steps, but I continued to get the error.

{ "errorMessage": "Cannot find module 'zip-folder'", "errorType": "Error", "stackTrace": [ "Module.require (module.js:497:17)", "require (internal/module.js:20:19)", "Object. (/var/task/index.js:18:19)", "Module._compile (module.js:570:32)", "Object.Module._extensions..js (module.js:579:10)", "Module.load (module.js:487:32)", "tryModuleLoad (module.js:446:12)", "Function.Module._load (module.js:438:3)" ] }

borenstein avatar Jun 23 '18 16:06 borenstein

After some screwing around, I got 'zip-folder' to load, but now it says 'Cannot find module 'archiver'". I would be very grateful if you could post more detailed instructions. Thank you!

{ "errorMessage": "Cannot find module 'archiver'", "errorType": "Error", "stackTrace": [ "Function.Module._load (module.js:474:25)", "Module.require (module.js:596:17)", "require (internal/module.js:11:18)", "Object. (/var/task/node_modules/zip-folder/index.js:2:16)", "Module._compile (module.js:652:30)", "Object.Module._extensions..js (module.js:663:10)", "Module.load (module.js:565:32)", "tryModuleLoad (module.js:505:12)", "Function.Module._load (module.js:497:3)" ] }

borenstein avatar Jun 23 '18 17:06 borenstein