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

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

WBOY
Release: 2024-02-06 08:06:10
forward
661 people have browsed it

在 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
Copy after login

or

$ wails doctor
Copy after login

Then I get the error

$ Command 'wails' not found
Copy after login


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
Copy after login

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!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template