当前位置:网站首页>【解决】package ‘xxxx‘ is not in GOROOT
【解决】package ‘xxxx‘ is not in GOROOT
2022-07-07 20:12:00 【cztAI】
錯誤
package ‘xxxx‘ is not in GOROOT
vscode 打印 GOROOT 路徑不是現在 go 的安裝路徑,然後我把 GOROOT 這條路徑給改了,報錯
go: cannot find GOROOT directory
想到之前在 vscode 的終端用 go env -w
設置過環境,然後我試著用該方法改為現在 go 的安裝路徑,終於成功修複 [淚目]。
解决方法:
打開 vscode 終端,用 go 命令設置環境
go env -w GOROOT=【這裏填go安裝路徑】
go env -w GOROOT=D:\go\
主要還是對環境配置不熟悉,亂配置導致的遺留問題,特此記錄。
边栏推荐
- Kubernetes -- detailed usage of kubectl command line tool
- Vulnhub's funfox2
- R language ggplot2 visualization: use the ggecdf function of ggpubr package to visualize the grouping experience cumulative density distribution function curve, and the linetype parameter to specify t
- Leetcode force buckle (Sword finger offer 36-39) 36 Binary search tree and bidirectional linked list 37 Serialize binary tree 38 Arrangement of strings 39 Numbers that appear more than half of the tim
- MIT科技评论文章:围绕Gato等模型的AGI炒作可能使人们忽视真正重要的问题
- JVM 类加载机制
- R language uses ggplot2 function to visualize the histogram distribution of counting target variables that need to build Poisson regression model, and analyzes the feasibility of building Poisson regr
- CIS芯片测试到底怎么测?
- YoloV6:YoloV6+Win10---训练自己得数据集
- Force buckle 1790 Can two strings be equal by performing string exchange only once
猜你喜欢
模拟实现string类
Cloud 组件发展升级
微信公众号OAuth2.0授权登录并显示用户信息
开源OA开发平台:合同管理使用手册
ASP. Net learning & ASP's one word
Ways to improve the utilization of openeuler resources 01: Introduction
机器学习笔记 - 使用Streamlit探索对象检测数据集
干货分享|DevExpress v22.1原版帮助文档下载集合
Yolov6:yolov6+win10--- train your own dataset
Introduction to bit operation
随机推荐
Openeuler prize catching activities, to participate in?
CUDA versions are inconsistent, and errors are reported when compiling apex
R language ggplot2 visualization: use the ggecdf function of ggpubr package to visualize the grouping experience cumulative density distribution function curve, and the linetype parameter to specify t
Force buckle 912 Sort array
一键部署Redis任意版本
R language ggplot2 visualization: use the ggqqplot function of ggpubr package to visualize the QQ graph (Quantitative quantitative plot)
Get webkitformboundary post login
Semantic SLAM源码解析
mysql 的一些重要知识
[auto.js] automatic script
R language uses ggplot2 function to visualize the histogram distribution of counting target variables that need to build Poisson regression model, and analyzes the feasibility of building Poisson regr
JVM GC垃圾回收简述
MSE API学习
Force buckle 88 Merge two ordered arrays
【剑指offer】剑指 Offer II 012. 左右两边子数组的和相等
如何在软件研发阶段落地安全实践
The boundary of Bi: what is bi not suitable for? Master data, Martech? How to expand?
MSE API learning
Automatic classification of defective photovoltaic module cells in electroluminescence images-論文閱讀筆記
力扣 88.合并两个有序数组