The scripts used to assume that ~/repos/wekan was a local wekan repo. They now check that the active directory is a wekan repo.
The use of sudo npm is bugged. This is a workaround patch. Fixes issue #2001