Home  >  Article  >  Backend Development  >  Command 'wails' not found in Linux, error installing wails Go

Command 'wails' not found in Linux, error installing wails Go

WBOY
WBOYforward
2024-02-06 08:06:10643browse

在 Linux 中找不到命令“wails”,安装 wails Go 时出错

Question content

I am trying to install wails in ubuntu 22.04.

Go version go1.20.3 and npm version 6.14.11 are already installed on my system.

I followed all the steps in the official website tutorial.

No errors occurred with the steps mentioned in the above tutorial.

But when I try the following command

$ wails version

or

$ wails doctor

Then I get the error

$ Command 'wails' not found

Correct answer


Follow these commands

export GOPATH=~/go 
go install github.com/wailsapp/wails/v2/cmd/wails@latest
export PATH=$PATH:$(go env GOPATH)/bin
source ~/.bashrc
wails version

devn@macbook-pro-2 ~ % crying version v2.4.1

The above is the detailed content of Command 'wails' not found in Linux, error installing wails Go. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:stackoverflow.com. If there is any infringement, please contact admin@php.cn delete