title: How to solve vs code - gopls command is not available
body: <p>The &quot;gopls&quot; command is not available. Run &quot;go get -v golang.org/x/tools/gopls&quot; to install.</p>
  <p>I'm running on go 1.14. Not sure what will happen, if I follow the instruction.</p>
  <p><a href="https://i.stack.imgur.com/9k9zI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9k9zI.png" alt="enter image description here" /></a></p>
  <hr />
  <pre><code>Installing 1 tool at the configured GOBIN: /usr/local/go/bin in module mode.
    gopls
  
  Installing golang.org/x/tools/gopls FAILED
  {
   &quot;killed&quot;: false,
   &quot;code&quot;: 1,
   &quot;signal&quot;: null,
   &quot;cmd&quot;: &quot;/usr/local/go/bin/go get -v golang.org/x/tools/gopls&quot;,
   &quot;stdout&quot;: &quot;&quot;,
   &quot;stderr&quot;: &quot;go: downloading golang.org/x/tools/gopls v0.6.9\ngo: golang.org/x/tools/gopls upgrade =&gt; v0.6.9\ngo: downloading golang.org/x/tools v0.1.1-0.20210319172145-bda8f5cee399
  ...
  
  1 tools failed to install.
  
  gopls: failed to install gopls(golang.org/x/tools/gopls): Error: Command failed: /usr/local/go/bin/go get -v golang.org/x/tools/gopls
  go: downloading golang.org/x/tools/gopls v0.6.9
  go: golang.org/x/tools/gopls upgrade =&gt; v0.6.9
  go: downloading golang.org/x/tools v0.1.1-0.20210319172145-bda8f5cee399
  go: downloading golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c
  go: downloading honnef.co/go/tools v0.1.1
  go: downloading golang.org/x/mod v0.4.1
  golang.org/x/mod/semver
  ...
  
  go get golang.org/x/tools/gopls: copying /var/folders/gq/bwl3jmx562x5twchgxvb6mlh0000gn/T/go-build703164122/b001/exe/a.out: open /usr/local/go/bin/gopls: permission denied
   no output 
  </code></pre>