Cache does not work using local runner

I was testing the cache feature, in order to do a npm install step, so all the other step does not have to perform that. If i use shared gitlab runners it work, but if i use a runner installed on my computer, looks like the cache does not work. Both are using docker

Working pipeline that uses gitlab runners :
Not workign pipeline using gitlab runner on my computer

If i join both steps in one, it does work in my runner

gitlabci file:

i added the tag, so it runs on my runner instead of shared runner