adverb
helplessly; reluctantly; having no choice
Describes doing something because there is no alternative, often with a sense of resignation. Used adverbially.
雨が降っていたので、仕方なしに傘を買った。
It was raining, so I reluctantly bought an umbrella.
彼は仕方なしにその条件を受け入れた。
He had no choice but to accept the conditions.