我使用了一个webpack,并且在它的cli文件.ToString()
中有这个shebang,并且假设在gitlab上使用它的CI运行器和docker图像运行。
https://github.com/webpack/webpack/blob/master/bin/webpack.js
无论使用哪个节点图像,都会返回此错误:
#! /usr/bin/env node
我使用的最新docker镜像是节点官方(https://hub.docker.com/_/node/)
我甚至明确添加了符号链接/usr/bin/env: node
: No such file or directory
npm info lifecycle @1.0.0~prod: Failed to exec prod script
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @1.0.0 prod script.
npm ERR! This is probably not a problem with npm. There is likely additional
logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-09-19T21_15_51_611Z-debug.log
,但它仍然返回相同的错误。