yarn invalid package version undefined - non-semver

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 undefined - non-semver)