I am not using scopes in my yarn project (just npmRegistryServer); hence, this line fails since yarn config get npmScopes is
undefined
|
err = json.Unmarshal([]byte(npmScopesStr), &npmScopesMap) |
Please skip if undefined and don't try to unmarshal it to JSON