Helm: plugins dir is not created automatically

Created on 24 May 2017  ·  3Comments  ·  Source: helm/helm

I recently installed helm 2.4.2 and right away tried to install a plugin:

$ helm plugin list
NAME    VERSION DESCRIPTION

$ helm plugin install https://github.com/technosophos/helm-github
Error: symlink /Users/sgoings/.helm/cache/plugins/https-github.com-technosophos-helm-github /Users/sgoings/.helm/plugins/helm-github: no such file or directory

$ mkdir -p ~/.helm/plugins

$ helm plugin install https://github.com/technosophos/helm-github
Installed plugin: github

$ helm plugin list
NAME    VERSION DESCRIPTION
github  0.1.0   This plugin provides GitHub services to Helm.

Could the error message on missing directory be changed to something like:

"Ensure you run helm init [--client-only] before you attempt to install plugins."

or even better: just create this directory automatically?

Most helpful comment

@elwaxoro you can also run helm init --client-only to create the plugin directories. :)

All 3 comments

From client 2.9.1 (osx) I encountered a similar error that brought me here. It said there was no $HELM_HOME defined. I manually ran mkdir -p ~/.helm/plugins, after which I was able to install plugins.

@elwaxoro you can also run helm init --client-only to create the plugin directories. :)

issue still exists with v2.16.1 on macos 🤔

Was this page helpful?
0 / 5 - 0 ratings