Just remove the following code from the .csproj file. Its working for me.
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />