Do I have to npm install in every step in a bitbucket pipeline that I need to use an npm command
Can you implement it like the documentation: https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html
The functionality is there. Let me know if it doesn't work for you still.