使用swtichHost工具切换开发环境时候提示没有权限问题,如下图。。
在这里插入图片描述
解决方案有两点
1、进入 C:\Windows\System32\drivers\etc
在这里插入图片描述
右键点击hosts的属性查看 属性的只读是否被勾选了,如果被勾选了将勾选勾去掉
在这里插入图片描述
上述完成后以管理员身份运行(管理员都是完全控制的)如果还不行请按照下图配置
2、右键属性——安全——编辑——找到users 和自己的用户名——勾选权限,成完全控制。。。——点击确定
OK 了
在这里插入图片描述

GitHub 加速计划 / sw / SwitchHosts
55
0
下载
Switch hosts quickly!
最近提交(Master分支:4 个月前 )
68fa4c5b Bump react-router and react-router-dom 3 天前
a3356b32 Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) to 7.12.0 and updates ancestor dependency [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom). These dependencies need to be updated together. Updates `react-router` from 7.5.2 to 7.12.0 - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/react-router@7.12.0/packages/react-router) Updates `react-router-dom` from 7.5.2 to 7.12.0 - [Release notes](https://github.com/remix-run/react-router/releases) - [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md) - [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.12.0/packages/react-router-dom) --- updated-dependencies: - dependency-name: react-router dependency-version: 7.12.0 dependency-type: indirect - dependency-name: react-router-dom dependency-version: 7.12.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> 3 天前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐