cannot find package "cloud.google.com/go/compute/metadata"

Posted wangjq19920210

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cannot find package "cloud.google.com/go/compute/metadata"相关的知识,希望对你有一定的参考价值。

问题:

cannot find package "cloud.google.com/go/compute/metadata"

解决:

mkdir $GOPATH/src/cloud.google.com
cd $GOPATH/src/cloud.google.com
git clone https://github.com/googleapis/google-cloud-go
mv google-cloud-go go

 

以上是关于cannot find package "cloud.google.com/go/compute/metadata"的主要内容,如果未能解决你的问题,请参考以下文章

go 报错 cannot find module providing package或cannot find main module

Error: Cannot find module 'vue-loader/package.json'

Cannot find `aapt.exe`. Please install the Android SDK Build-tools package

Cannot find module ‘webpack-cli/package.json‘

Cannot find module ‘webpack-cli/package.json‘

Electron —— Cannot find module ‘index.js’