Hi @Lina977,
I'd like to help!
To better assist -
To better assist you - Is there an antivirus software installed on your Mac? If yes, please try disabling it and check if it works.
While you respond to that, go to System Information to check if the USB is detected or not -
a.) From the Apple menu, choose About This Mac.
b.) Click System Report.
c.) Under the Hardware heading on the left side of the System Information window, click USB. USB 3 devices appear under USB 3.0 Bus, and USB 2 devices appear under USB 2.0 Bus. The printer should be under the USB 2.0 Bus.
If the device is not detected, it may not be receiving enough power or it may be blocked by internet security software. You may also try other ports on the hub or a different cable.
Hope this helps! Keep me posted.
And, Welcome to the HP Support Community.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping