使用np包发布到npm或纱线

使用np包发布到npm或纱线,npm,publish,yarnpkg,np,Npm,Publish,Yarnpkg,Np,我正在尝试使用将包发布到npm。一切似乎都很顺利,直到它碰到了版本号的颠簸。我不知道出了什么问题 ✔ Prerequisite check ✔ Git ✔ Cleanup ✔ Installing dependencies using npm ✔ Running tests using npm ✖ Bumping version using npm → v1.0.3 Publishing package using npm Pushing tags

我正在尝试使用将包发布到
npm
。一切似乎都很顺利,直到它碰到了版本号的颠簸。我不知道出了什么问题

  ✔ Prerequisite check
  ✔ Git
  ✔ Cleanup
  ✔ Installing dependencies using npm
  ✔ Running tests using npm
  ✖ Bumping version using npm
    → v1.0.3
    Publishing package using npm
    Pushing tags

✖ Command failed: npm version 1.0.3
npm ERR! code 128
npm ERR! Command failed: git tag v1.0.3 -sm 1.0.3
npm ERR! error: cannot run gpg: No such file or directory
npm ERR! error: gpg failed to sign the data
npm ERR! error: unable to sign the tag
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ds/.npm/_logs/2019-06-28T13_11_44_469Z-debug.log

v1.0.3

问题是我已将
version sign git tag
设置为
true
,并且由于我的机器上没有安装
gpg
,因此标记的签名失败。将标志设置为
false
解决了问题。我想这不是最好的办法,而是最快的办法