我想将本地范围服务器作为远程作用域添加到我的项目中。但是,当我运行bit remote add "http://localhost:3001"时,我会得到一个error: permission to scope "" (http://localhost:3001) was denied以及一个重定向到Bit主页的疑难解答url。
我正在运行bit版本0.0.779,并在公司代理中工作。
设置并运行本地范围
按照这些的作用域指示,我执行以下操作:
mkdir my-scope
cd my-scope
bit init --bare
bit start --port localhost:3001添加远程范围
在一个现有的地方反应项目中,我做了以下工作:
bit init
bit add /path/to/my/compnent
bit remote add http://localhost:3001问题
运行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有人知道为什么我会被拒绝将localhost设置为我的远程范围吗?
发布于 2022-08-18 10:22:49
您可以使用docker容器来简化宿主作用域的过程。请参阅这里的详细信息- https://bit.dev/docs/scope/running-a-scope-server
无论如何,问题似乎只是一个错误,因为您忘记在命令的主机url参数中设置//。
https://stackoverflow.com/questions/73070733
复制相似问题