简体   繁体   English

将 localhost 作为远程 scope 添加到我的 Bit.dev 项目会返回权限被拒绝错误

[英]Adding localhost as a remote scope to my Bit.dev project returns a permission denied error

I'd like to add a local scope server as a remote scope to my project.我想将本地 scope 服务器作为远程 scope 添加到我的项目中。 However, when I run bit remote add "http://localhost:3001" I get a error: permission to scope "" (http://localhost:3001) was denied along with a troubleshoot url that redirects me to the Bit homepage.但是,当我运行bit remote add "http://localhost:3001"我收到一个error: permission to scope "" (http://localhost:3001) was denied以及故障排除 url 将我重定向到 Bit 主页.

I'm running bit version 0.0.779, and work within a company proxy.我正在运行位版本 0.0.779,并在公司代理中工作。

Setting up and running my local scope设置并运行我的本地 scope

Following these bare scope directions I do the following:按照这些裸露的 scope 方向,我执行以下操作:

mkdir my-scope
cd my-scope
bit init --bare

bit start --port localhost:3001

Adding remote scope添加远程 scope

In an existing, local react project I do the following:在现有的本地反应项目中,我执行以下操作:

bit init
bit add /path/to/my/compnent

bit remote add http://localhost:3001

Problem问题

Running bit remote add http:localhost:3001 returns:运行bit remote add http:localhost:3001返回:

error: permission to scope "" (http://localhost:3001) was denied
see troubleshooting at https://legacy-docs.bit.dev/docs/setup-authentication#authentication-issues

Does anyone know why I might be getting denied from setting localhost as my remote scope?有谁知道为什么我可能会被拒绝将 localhost 设置为我的远程 scope?

You can use the docker container to simplify the process of hosting scopes.您可以使用 docker 容器来简化托管作用域的过程。 see details here - https://bit.dev/docs/scope/running-a-scope-server在此处查看详细信息 - https://bit.dev/docs/scope/running-a-scope-server

regardless, it seems that the issue is just a typo, as you forgot to set // in the host url parameter of your command.无论如何,问题似乎只是一个错字,因为您忘记在命令的主机 url 参数中设置//

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM