Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing Google Clould使用“;节点”;与此模块不兼容_Unit Testing_Docker_Kubernetes_Continuous Integration - Fatal编程技术网

Unit testing Google Clould使用“;节点”;与此模块不兼容

Unit testing Google Clould使用“;节点”;与此模块不兼容,unit-testing,docker,kubernetes,continuous-integration,Unit Testing,Docker,Kubernetes,Continuous Integration,因为这个麻烦,我要花两天时间 我已经有了云构建设置,但正在尝试将测试过程插入GCP上的云构建中 这是我补充的 - name: gcr.io/cloud-builders/yarn args: ['install'] - name: gcr.io/cloud-builders/yarn args: ['test:unit'] 但是我得到了一个错误error@grpc/grpc-js@0.6.9:引擎“节点”与此模块不兼容。预期版本“8.13.0 | |>=10.10.0”。 发现不兼容模

因为这个麻烦,我要花两天时间

我已经有了云构建设置,但正在尝试将
测试过程插入GCP上的云构建中

这是我补充的

- name: gcr.io/cloud-builders/yarn
  args: ['install']
- name: gcr.io/cloud-builders/yarn
  args: ['test:unit']
但是我得到了一个错误
error@grpc/grpc-js@0.6.9:引擎“节点”与此模块不兼容。预期版本“8.13.0 | |>=10.10.0”。
发现不兼容模块时出错

我真的不知道为什么会这样。我必须在上一步安装节点吗?或者只是同步节点引擎版本?如果是,如何设置节点引擎版本

我已经在安装时执行了
--忽略引擎
,但测试时甚至出现了错误

我错过了什么?我怎么才能知道呢

- name: node:10.15.1
  entrypoint: yarn
  args: ['install']

我用这个解决了这个问题。

用npm也有同样的结果。