【发布时间】:2020-11-16 19:23:52
【问题描述】:
我尝试在 azure devops 中运行 cypress 测试。当尝试使用 npm 任务时,我收到如下错误:
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
我的问题是这是什么意思?我应该在哪里搜索原因?每次我使用下面的 npm 任务时都会收到这些错误。 Git 已安装在设备中。添加路径。
- task: Npm@1
displayName: "npm install"
inputs:
command: 'install'
workingDir: '$(System.SomeArtifact)/drop/SomeDirWithPackageJson'
- task: Npm@1
displayName: "run cy:run"
inputs:
command: 'custom'
workingDir: '$(System.SomeArtifact)/drop/SomeDirWithPackageJson'
customCommand: 'run cy:run'
【问题讨论】:
-
错误来自
npm install或run cy:run?
标签: azure npm azure-devops yaml