所以我写了一个我想运行的测试并对其进行了测试,它在我的本地机器上运行良好。然后我将其移至 bitbucket 中的管道,并从我的 makefile 中获得以下终端输出
g++ -g -c run_test.cpp
g++ -g run_test.cpp -o rund
g++ -c -o run_magento_test.o run_magento_test.cpp
g++ -g run_magento_test.cpp -o runMd
./rund 1
../node_modules/.bin/testcafe -e chromium AutomatedTesting.js --screenshots ./screenshots --screenshots-on-fails
/usr/bin/env: node: No such file or directory
./runMd 1
../node_modules/.bin/testcafe -e chromium MagentoTesting.js --assertion-timeout 20000 --selector-timeout 50000 --screenshots ./screenshots --screenshots-on-fails
/usr/bin/env: node: No such file or directory
我注意到 /usr/bin/env 并检查了命令的输出
ls /usr/bin
它肯定包含 env 然后我检查了 PATH 变量,它是
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
所以现在我很困惑它如何没有正确调用 env 。
另请注意,我知道我不应该将 node_modules/ 推送到 bitbucket,但我做到了,并且稍后会解决这个问题,这与问题有关吗?
如果有人需要知道它正在运行 4.14.42-coreos