0

在我的 gitlab.yml 文件中,我使用命令 npm version prerelease --preid test 进行版本控制,这一直有效。但突然间我收到了一个npm ERR!代码 129

我使用图像:reactnativecommunity/react-native-android node v16.3.0 npm v7.15.1

这是我在日志文件中发现的错误:

28 verbose stack Error: command failed
28 verbose stack     at ChildProcess.<anonymous> (/home/gitlab-runner/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
28 verbose stack     at ChildProcess.emit (node:events:394:28)
28 verbose stack     at maybeClose (node:internal/child_process:1067:16)
28 verbose stack     at Socket.<anonymous> (node:internal/child_process:453:11)
28 verbose stack     at Socket.emit (node:events:394:28)
28 verbose stack     at Pipe.<anonymous> (node:net:661:12)
29 verbose cwd /home/gitlab-runner/builds/eed58547/0/frontend/mobile-app
30 verbose Linux 3.10.0-957.1.3.el7.x86_64
31 verbose argv "/home/gitlab-runner/.nvm/versions/node/v16.3.0/bin/node" "/home/gitlab-runner/.nvm/versions/node/v16.3.0/bin/npm" "version" "prerelease" "--preid" "acceptance"
32 verbose node v16.3.0
33 verbose npm  v7.15.1
34 error code 129
35 error command failed
36 error command /usr/bin/git --no-replace-objects status --porcelain=v1 -uno
37 error error: option `porcelain' takes no value

以前有人见过这个错误,有解决办法吗?

多谢

4

0 回答 0