关于windows环境下npm报错pngquant-bin@4.0.0 postinstall: `node lib/install.js`和pngquant failed to build的问题
Error: pngquant failed to build, make sure that libpng-dev is installed
error code ELIFECYCLE
error errno 1
error pngquant-bin@4.0.0 postinstall: `node lib/install.js`
error Exit status 1
error Failed at the pngquant-bin@4.0.0 postinstall script.
error This is probably not a problem with npm. There is likely additional logging output above.
verbose exit [ 1, true ]
第一次npm出现这样的问题通常是windows环境下编译问题
解决方案
以管理员身份运行CMD
npm install -g windows-build-tools