I encountered the identical issue, however, the execution of this single command line successfully resolved the problem at hand.
npm rebuild --verbose sharp
Please refer to the installation documentation under Common problems for further guidance.