当前位置:网站首页>【解决】package ‘xxxx‘ is not in GOROOT
【解决】package ‘xxxx‘ is not in GOROOT
2022-07-07 18:06: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\
主要还是对环境配置不熟悉,乱配置导致的遗留问题,特此记录。
边栏推荐
- 力扣 1961. 检查字符串是否为数组前缀
- Automatic classification of defective photovoltaic module cells in electroluminescence images-論文閱讀筆記
- Semantic slam source code analysis
- 力扣 643. 子数组最大平均数 I
- 841. 字符串哈希
- Force buckle 674 Longest continuous increasing sequence
- R language ggplot2 visualization: use the ggqqplot function of ggpubr package to visualize the QQ graph (Quantitative quantitative plot)
- CIS芯片测试到底怎么测?
- The boundary of Bi: what is bi not suitable for? Master data, Martech? How to expand?
- R language ggplot2 visualization: use the ggviolin function of ggpubr package to visualize the violin diagram, set the palette parameter to customize the filling color of violin diagrams at different
猜你喜欢
力扣 599. 两个列表的最小索引总和
openEuler 有奖捉虫活动,来参与一下?
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
Automatic classification of defective photovoltaic module cells in electroluminescence images-论文阅读笔记
Introduction to bit operation
Cloud 组件发展升级
使用高斯Redis实现二级索引
论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》
Detailed explanation of Flink parallelism and slot
About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]
随机推荐
ASP. Net learning & ASP's one word
Cloud 组件发展升级
TS快速入门-泛型
Force buckle 989 Integer addition in array form
Cloud component development and upgrading
Data island is the first danger encountered by enterprises in their digital transformation
Opencv学习笔记 高动态范围 (HDR) 成像
Creation of kubernetes mysql8
JVM 类加载机制
RESTAPI 版本控制策略【eolink 翻译】
Oracle 存儲過程之遍曆
【Auto.js】自动化脚本
vulnhub之Funfox2
线性基
[sword finger offer] sword finger offer II 012 The sum of left and right subarrays is equal
Automatic classification of defective photovoltaic module cells in electroluminescence images-论文阅读笔记
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
A pot of stew, a collection of common commands of NPM and yarn cnpm
831. KMP字符串
数据孤岛是企业数字化转型遇到的第一道险关