Consider
$$\int_{0}^{\infty}\left({1\over 1+nx^n}-e^{-nx^n}\right)\cdot{\mathrm dx\over x^{1+n}}=1-\gamma\tag1$$ $n\ge1$;(integers)
n seem to be not involved in the closed form(why?)
How does one show that $(1)$ converges to $1-\gamma?$
An attempt:
$$(1+nx^n)^{-1}=1-nx^n+(nx^n)^2-(nx^n)^3+\cdots$$
$(1)$ becomes
$$\int_{0}^{\infty}\left(x^{-n-1}-nx^{-1}+n^2x^{n-1}-n^3x^{2n-1}+\cdots-{e^{-nx^n}\over x^{n+1}}\right)\mathrm dx\tag2$$
$(2)$ divgerges, how else can we tackle $(1)$?
Or do we have to differentiate m times w.r.t n

If you change variable $n x^n=y$, almost as suggested by tired in his comment, you end with $$\int_{0}^{\infty}\left({1\over 1+nx^n}-e^{-nx^n}\right)\cdot{\mathrm dx\over x^{1+n}}=\int_{0}^{\infty}\frac{\frac{1}{y+1}-e^{-y}}{y^2}\,dy$$ The antiderivative is given by $$\int\frac{\frac{1}{y+1}-e^{-y}}{y^2}\,dy=\text{Ei}(-y)+\frac{e^{-y}}{y}-\frac{1}{y}-\log (y)+\log (y+1)=f(y)$$ where appears the exponential integral.
Since $\lim_{y\to \infty } \, f(y)=0$, we are left with $\lim_{y\to 0 } \, f(y)$.
Using asymptotics , $$\text{Ei}(-y)=\gamma+\log (y) -y+\frac{y^2}{4}+O\left(y^3\right)$$ and Taylor series for small values of $y$
$$f(y)=(\gamma -1)+\frac{y}{2}-\frac{5 y^2}{12}+O\left(y^3\right)$$ which then leads to the result.