节点Lambdas从6.10升级到8.10不能通过AWS Code build Project进行构建

时间:2019-05-22 12:50:04

标签: node.js amazon-web-services aws-codebuild

我最近在AWS中将节点lambda从节点版本6.10升级到8.11。当我尝试使用npm install构建lambda时,它会向我抛出以下错误->

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: buffer-more-ints@1.0.0 (../../common/customlogger/node_modules/buffer-more-ints):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/john/sampleproject/lambda/alert/error-alert/node_modules/.staging/buffer-more-ints-edcb2826' -> '/Users/john/sampleproject/lambda/common/customlogger/node_modules/buffer-more-ints'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: punycode@1.4.1 (../../common/customlogger/node_modules/buildmail/node_modules/punycode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/john/sampleproject/lambda/alert/error-alert/node_modules/.staging/punycode-49d3cbcc' -> '/Users/john/sampleproject/lambda/common/customlogger/node_modules/buildmail/node_modules/punycode'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bytes@3.1.0 (../../common/customlogger/node_modules/bytes):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/john/sampleproject/lambda/alert/error-alert/node_modules/.staging/bytes-ed08388e' -> '/Users/john/sampleproject/lambda/common/customlogger/node_modules/bytes'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: caseless@0.12.0 (../../common/customlogger/node_modules/caseless):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/Users/john/sampleproject/lambda/alert/error-alert/node_modules/.staging/caseless-0d94b804' -> '/Users/john/sampleproject/lambda/common/customlogger/node_modules/caseless'

npm ERR! path /Users/john/sampleproject/lambda/alert/error-alert/node_modules/.staging/circular-json-561b21f6
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/john/sampleproject/lambda/alert/error-alert/node_modules/.staging/circular-json-561b21f6' -> '/Users/john/sampleproject/lambda/common/customlogger/node_modules/circular-json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mayank/.npm/_logs/2019-05-22T09_39_22_252Z-debug.log

我已经尝试清除npm缓存并删除node_modules并尝试安装npm,但这似乎不起作用。看来节点8和节点10都在发生这种情况。有人遇到类似问题并解决了吗?

0 个答案:

没有答案