2017-02-22 37 views
0

當我在ubuntu 16.04中打開visual studio代碼編輯器時,它在頂部顯示下面的錯誤。未找到shfmt錯誤

shfmt not found! run go get -u github.com/mvdan/sh/cmd/shfmt to install

但是我試圖找出從他的官方網站解決方案,但沒有得到任何解決方案。

安裝golang-go後出現以下錯誤。

#go get -u github.com/mvdan/sh/cmd/shfmt 

輸出:

go/src/github.com/mvdan/sh/cmd/shfmt/main.go:156: undefined: io.SeekStart 

回答

0

您必須安裝go第一。一旦你這樣做,那麼你可以運行

去拿-u github.com/mvdan/sh/cmd/shfmt