'K9s can't open because 'po' command not found

I was using k9s during work and when I try to start it, I got the error message :

Boom!! app run failed 'po' command not found.

I searched for how to reinstall the 'po' command, but no useful information is found. I tried to re-install the xcode-select on my machine but still not working.

The config file of the k9s from my side looks like this

k9s:
  refreshRate: 2
  maxConnRetry: 5
  enableMouse: false
  headless: false
  logoless: false
  crumbsless: false
  readOnly: false
  noIcons: false
  logger:
    tail: 100
    buffer: 5000
    sinceSeconds: 60
    fullScreenLogs: false
    textWrap: false
    showTime: false
  currentContext: xxxx/yyyy
  currentCluster: xxxx/yyyy
  clusters:
    xxxx/yyyy:
      namespace:
        active: default
        favorites:
        - default
      view:
        active: po
      featureGates:
        nodeShell: false
      shellPod:
        image: busybox:1.31
        command: []
        args: []
        namespace: default
        limits:
          cpu: 100m
          memory: 100Mi
      portForwardAddress: localhost
  thresholds:
    cpu:
      critical: 90
      warn: 70
    memory:
      critical: 90
      warn: 70
  screenDumpDir: /var/folders/rl/_xgz4l291pq2ljx1p7x8l5sm0000gn/T/k9s-screens-name

I guess the problem is from the part of the config file

view:
        active: po

Could Someone help with this? thank you



Solution 1:[1]

Try these commands:

 > brew remove k9s
 > rm -rf /Users/home-folder/.config/k9s
 > rm -rf /Users/home-folder/Library/Application\ Support/k9s
 > brew install k9s

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1