modify npm check method

In previous versions of node.js, default output is 0, in latest version default output is 1. Use `npm version` to check whether npm is correctly installed.
Merge pull request #1 from renkun-ken/patch-1

modify npm check method