tag:help.appveyor.com,2012-11-13:/discussions/problems/6927-cache-dependency-will-create-an-empty-file-if-one-doesnt-existAppVeyor: Discussion 2018-08-25T02:18:09Ztag:help.appveyor.com,2012-11-13:Comment/428172572017-06-21T21:31:53Z2017-06-21T21:31:53ZCache dependency will create an empty file if one doesn't exist<div><p>Hi Matt,</p>
<p>Thank you for the catch! We created <a href="https://github.com/appveyor/ci/issues/1622">this issue</a> to track it. For now as a workaround you can run something like this at <code>install</code> or any other step before build:</p>
<pre>
<code>- ps: if ((Get-Item .\npm-shrinkwrap.json).Length -eq 0) {del .\npm-shrinkwrap.json}</code>
</pre>
<p>Ilya.</p></div>Ilya Finkelshteyn