Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js git ref/heads/dashboard angular不存在或您没有权限_Node.js_Netlify - Fatal编程技术网

Node.js git ref/heads/dashboard angular不存在或您没有权限

Node.js git ref/heads/dashboard angular不存在或您没有权限,node.js,netlify,Node.js,Netlify,当我试图从bitbucket将Angular应用程序部署到Netlify时,出现以下错误 这些是neatlify日志 11:38:49 PM: Build ready to start 11:38:51 PM: build-image version: 7c49b266ed8abd833dee6036ec0a4b9ee887658a 11:38:51 PM: buildbot version: f58df58ab0bceffdcb8d1e60fec992495a2a6751 11:38:51 P

当我试图从bitbucket将Angular应用程序部署到Netlify时,出现以下错误

这些是neatlify日志

11:38:49 PM: Build ready to start
11:38:51 PM: build-image version: 7c49b266ed8abd833dee6036ec0a4b9ee887658a
11:38:51 PM: buildbot version: f58df58ab0bceffdcb8d1e60fec992495a2a6751
11:38:51 PM: Fetching cached dependencies
11:38:51 PM: Starting to download cache of 254.8KB
11:38:51 PM: Finished downloading cache in 129.507361ms
11:38:51 PM: Starting to extract cache
11:38:51 PM: Failed to fetch cache, continuing with build
11:38:51 PM: Starting to prepare the repo for build
11:38:52 PM: git ref refs/heads/dashboard-angular does not exist or you do not have permission
11:38:52 PM: Failing build: Failed to prepare repo
11:38:52 PM: failed during stage 'preparing repo': git ref refs/heads/dashboard-angular does not exist
11:38:52 PM: Finished processing build request in 833.373404ms

这通常是因为Netlify没有获取源代码的权限。Netlify仅通过部署密钥访问存储库。 Netlify无法在任何git服务(GitHub、GitLab或BitBucket)上自动安装部署密钥,除非安装/登录用户具有管理访问权限

在获得适当的权限并通过Netlify的UI重新链接后,部署密钥成功安装,并且拉入Netlify的CI工作得更好

对于无法使用管理访问权限的情况,可以就工作流提供建议