美文网首页
yarn invalid package version und

yarn invalid package version und

作者: 一只重拾梦想的小水 | 来源:发表于2020-11-11 12:00 被阅读0次

https://github.com/yarnpkg/yarn/issues/6195

问题:

package.json
"demo": "git+https://git.garena.com/yuxin.huo/shopee_rn_sdk.git#v1.0.0",

表现:

[1/4] 🔍 Resolving packages...
error Can't add "myprivaterepo": invalid package version undefined.

原因:

yarn install git url 时,不能用 non-semver

4. Allows changes that do not modify the left-most non-zero element in the [major, minor, patch] tuple.

解决:

image

相关文章

网友评论

      本文标题:yarn invalid package version und

      本文链接:https://www.haomeiwen.com/subject/knsebktx.html