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也有同样的结果。