NHAS / wag

Simple Wireguard 2FA
BSD 3-Clause "New" or "Revised" License
499 stars 27 forks source link

Build Prerequisites v4.1.1-1-gf055b4c #29

Closed paulb-smartit closed 1 year ago

paulb-smartit commented 1 year ago

Documentation requires update.

Building the latest version:

Error

$ make
BPF_CLANG=clang BPF_CFLAGS='-O2 -g -Wall -Werror' go generate ./...
Compiled /opt/wag/internal/router/bpf_bpfeb.o
Stripped /opt/wag/internal/router/bpf_bpfeb.o
Wrote /opt/wag/internal/router/bpf_bpfeb.go
Compiled /opt/wag/internal/router/bpf_bpfel.o
Stripped /opt/wag/internal/router/bpf_bpfel.o
Wrote /opt/wag/internal/router/bpf_bpfel.go
cd ui/src; npm install; gulp build
/bin/sh: npm: not found
/bin/sh: gulp: not found
make: *** [Makefile:21: .build_ui] Error 127

Fix

sudo apk add npm
sudo npm install --global gulp-cli
NHAS commented 1 year ago

Sweet, I've just added this to the setup instructions for building from source. Good spot