Added check if npm is existing.