嗨,我在尝试将新代码部署到我们的测试环境时遇到了这个错误,但是突然它崩溃了。
在我的机器上工作得很好,但是在自动焊接系统上,它突然在部署中崩溃了。
EB-Actudio.LoG
npm ERR! path /tmp/deployment/application/node_modules/hummus/node_modules/.bin/node-pre-gyp
npm ERR! code EEXIST
npm ERR! Refusing to delete /tmp/deployment/application/node_modules/hummus/node_modules/.bin/node-pre-gyp: is outside /tmp/deployment/application/node_modules/hummus/node_modules/node-pre-gyp and not a link
npm ERR! File exists: /tmp/deployment/application/node_modules/hummus/node_modules/.bin/node-pre-gyp
深入研究它所说的日志
/tmp/.npm/_日志/2019-01-21t12_50_51_067z-debug.log
624 verbose unbuild rmStuff node-pre-gyp@0.10.3 from /tmp/deployment/application/node_modules
625 verbose unbuild rmStuff in /tmp/deployment/application/node_modules/hummus/node_modules
626 silly isEverInside /tmp/deployment/application/node_modules/hummus/node_modules/.bin/node-pre-gyp is not inside /tmp/deployment/application/node_modules/hummus/node_modules/node-pre-gyp
627 silly gentlyRm parent.path = /tmp/deployment/application/node_modules/hummus/node_modules/node-pre-gyp
628 silly gentlyRm parent.managed = /tmp/deployment/application/node_modules/hummus/node_modules/node-pre-gyp is in /tmp/deployment/application
629 silly gentlyRm target.path = /tmp/deployment/application/node_modules/hummus/node_modules/.bin/node-pre-gyp
630 silly gentlyRm target.symlink = null
631 silly gentlyRm target.managed = /tmp/deployment/application/node_modules/hummus/node_modules/.bin/node-pre-gyp is in /tmp/deployment/application
632 silly gentlyRm target.inParent = false
633 verbose unlock done using /tmp/.npm/_locks/staging-6d252812679aa9c6.lock for /tmp/deployment/application/node_modules/.staging
634 verbose stack Error: Refusing to delete /tmp/deployment/application/node_modules/hummus/node_modules/.bin/node-pre-gyp: is outside /tmp/deployment/application/node_modules/hummus/node_modules/node-pre-gyp and not a link
我让codeship部署所有的代码,它将
node_modules
然后上传到AWS。
但现在当我想做一个
$ eb deploy DEV-APP --profile dev
它工作得很好。
> hummus@1.0.95 install /tmp/deployment/application/node_modules/hummus
> node-pre-gyp install --fallback-to-build $EXTRA_NODE_PRE_GYP_FLAGS
node-pre-gyp WARN Using request for node-pre-gyp https download
[hummus] Success: "/tmp/deployment/application/node_modules/hummus/binding/hummus.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
只有当我让代码发布完成我的部署时,它才根本不起作用。