You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just lost a couple of hours trying to debug an issue with a dependency that uses napa. I wasn't having an issue until suddenly today I started noticing the files that the folder this dependency was copying didn't contain all the files it was meant to have.
I ended up tracking the problem to an invalid napa cache (perhaps from an interrupted installation?). Since there doesn't seem to be a convenient command line flag to clear the cache I ended up setting up a separate project and using a package.json script to run the napa command on the same github repo of the broken cache and using "napa-config" to set "cache" to false.
This seems to have solved the problem, but perhaps there should be a better way to avoid this problem for future users? Either using a checksum to validate caches or only creating the cache if the process finished running?
The text was updated successfully, but these errors were encountered:
I also had this happen on a build server, and it was a nightmare to debug. Napa was repeatedly adding JS files that appeared to be truncated and corrupted into my build. I thought it was an issue with NPM at first, but it turned out to only be happening with packages installed by napa.
I eventually deleted the cache folder (on Windows by default it's at C:\Windows\Temp\cache) and set napa to not use its cache in the future. Adding this at the top level of package.json seems to do the trick:
I just lost a couple of hours trying to debug an issue with a dependency that uses napa. I wasn't having an issue until suddenly today I started noticing the files that the folder this dependency was copying didn't contain all the files it was meant to have.
I ended up tracking the problem to an invalid napa cache (perhaps from an interrupted installation?). Since there doesn't seem to be a convenient command line flag to clear the cache I ended up setting up a separate project and using a package.json script to run the napa command on the same github repo of the broken cache and using "napa-config" to set "cache" to false.
This seems to have solved the problem, but perhaps there should be a better way to avoid this problem for future users? Either using a checksum to validate caches or only creating the cache if the process finished running?
The text was updated successfully, but these errors were encountered: