Open md97212 opened 6 years ago
I'm running into the same problem trying to run this locally. Did you find a solution?
I switched the code from:
.pipe(tar.x({
C: path.join(path.sep, 'tmp')
}))
to:
.pipe(tar.x({
C: path.join(process.cwd(), path.sep, 'tmp')
}))
and it worked (after creating tmp
directory in my application folder).
@MikeGertrudes I have got this worked in Lambda, for lambda usage, seems you shouldn't add that "process.cwd()".
In trying to setup local chome in this block,
I get this error, has anyone else bumped into this and found a good solution? I suppose I can chmod the /tmp directory but that seems like a hack.