Hello, have you followed official install instructions ? Depend from your device architecture :
[Howto] install magisk and hide that OS have been modified