当前位置:网站首页>【解决】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\
主要還是對環境配置不熟悉,亂配置導致的遺留問題,特此記錄。
边栏推荐
- Chapter 9 Yunji datacanvas was rated as 36 krypton "the hard core technology enterprise most concerned by investors"
- JVM class loading mechanism
- Semantic SLAM源码解析
- Boot 和 Cloud 的版本选型
- JVM GC垃圾回收简述
- 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
- Vulnhub's funfox2
- 论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》
- Force buckle 599 Minimum index sum of two lists
- pom. XML configuration file label: differences between dependencies and dependencymanagement
猜你喜欢
随机推荐
torch.nn.functional.pad(input, pad, mode=‘constant‘, value=None)记录
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
Flink并行度和Slot详解
Simulate the implementation of string class
Yolov6:yolov6+win10--- train your own dataset
openEuler 有奖捉虫活动,来参与一下?
Force buckle 1790 Can two strings be equal by performing string exchange only once
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
Vulnhub tre1
openEuler 资源利用率提升之道 01:概论
Semantic SLAM源码解析
MSE API learning
【Auto.js】自动化脚本
LeetCode_7_5
【STL】vector
Detailed explanation of Flink parallelism and slot
Force buckle 674 Longest continuous increasing sequence
With st7008, the Bluetooth test is completely grasped
编译器优化那些事儿(4):归纳变量
rk3128投影仪lcd显示四周显示不完整解决