In this paper, we study the following n-dimensional piecewise smooth differential system
where x=(x1,x2,⋯,xn)T, 0<ε≪1, and g±i(x), i=1,2,⋯,n are real polynomials of x with degree m. By using the first order Melnikov vector function, we obtain the upper bound of the number of periodic orbits bifurcating from the unperturbed system.