React project, can you configure to skip 'Thumbs.db'' when npm is packaged?

this should appear when the image is previewed, and there will be almost every package. You have to delete it manually in order to package it.

error prompt:

EPERM: operation not permitted, open XXX\dist\images\Thumbs.db"
Nov.15,2021

I don't know why this file is generated. Put aside npm itself and give it a try:

  1. add sudo before npm run build : sudo npm run build ?

or

  1. chmod 644-R. / dist ? Or be more violent 777 (the blue man is back)
Menu