added error and test for syncing

@Raynos 
```js
message: 'Expected the npm-shrinkwrap.json file to exist.\n' +
    'filePath: {filePath}.\n' +
    'SUGGESTED FIX: run `npm run shrinkwrap` or `npm-shinkwrap` to generate one.\n'
```