Local modules and npm dedupe issues

I am trying to use a combination of local modules and npm dedupe to share code among multiple AWS Lambda functions (thus the need to dedupe - to keep the package size within limits). There are several layers of local module dependency and when using npm install the build succeeds, dependencies are available and the code runs as expected. When I introduce npm dedupe I then reliably get ENOENT errors where npm rolls back dependencies and tries to delete files it chose not to extract from source tarballs. More details can be found here where I have created a demonstration of my issue. Any assistance is greatly appreciated.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.