adverb
reluctantly; helplessly; as a last resort
Expresses doing something because there is no other choice, often with a feeling of resignation.
雨が降っていたので、仕方なく傘を買った。
It was raining, so I reluctantly bought an umbrella.
バスが来なかったから、仕方なく歩いて帰った。
The bus didn't come, so I had no choice but to walk home.
An adjective meaning 'it can't be helped' or 'there's no choice'. 仕方なく is the adverbial form used to modify verbs.
Adverbial form of 仕方ない (shikata nai), literally 'there is no way to do it'.