我使用 lerna 并想用它lerna version
来管理我的版本。我为我的 ssh 密钥添加了密码。我可以git remote update
通过输入我的密码来做到这一点。但我无法使用lerna version patch
,它给了我错误:
> [email protected] patch
> lerna version patch --conventional-commits --yes
lerna notice cli v4.0.0
lerna info current version 1.0.0
lerna ERR! Error: Command failed with exit code 1: git remote update
lerna ERR! [email protected]: Permission denied (publickey).
lerna ERR! fatal: Could not read from remote repository.
lerna ERR!
lerna ERR! Please make sure you have the correct access rights
lerna ERR! and the repository exists.
lerna ERR! error: could not fetch origin
lerna ERR! Fetching origin
lerna ERR! at makeError (D:\code\lerna-demo\node_modules\execa\lib\error.js:60:11)
lerna ERR! at Function.module.exports.sync (D:\code\lerna-demo\node_modules\execa\index.js:194:17)
lerna ERR! at Object.execSync (D:\code\lerna-demo\node_modules\@lerna\child-process\index.js:39:16)
lerna ERR! at updateRemote (D:\code\lerna-demo\node_modules\@lerna\version\lib\is-behind-upstream.js:34:16)
lerna ERR! at isBehindUpstream (D:\code\lerna-demo\node_modules\@lerna\version\lib\is-behind-upstream.js:16:3)
lerna ERR! at VersionCommand.initialize (D:\code\lerna-demo\node_modules\@lerna\version\index.js:153:9)
lerna ERR! lerna Command failed with exit code 1: git remote update
lerna ERR! lerna [email protected]: Permission denied (publickey).
lerna ERR! lerna fatal: Could not read from remote repository.
lerna ERR! lerna
lerna ERR! lerna Please make sure you have the correct access rights
lerna ERR! lerna and the repository exists.
lerna ERR! lerna error: could not fetch origin
lerna ERR! lerna Fetching origin