Fixed the NPM section of sync.

Now it tries to install first.