Created by: ashr81
Fixes #7411 (closed)
Replaces npm commands to yarn commands if the user uses yarn
yarn