npm 报错gifsicle@5.2.1 postinstall: `node lib/install.js`
报错信息:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gifsicle@5.2.1 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gifsicle@5.2.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2021-11-02T08_06_27_388Z-debug.log
解决办法为:
npm install --ignore-scripts