npm install 时候报错 gifsicle@5.2.0 postinstall: node lib/install.js
npm install 时候报错 gifsicle@5.2.0 postinstall: node lib/install.js
> gifsicle@5.2.0 postinstall /usr/local/lib/node_modules/miniprogram-slim/node_modules/gifsicle> node lib/install.js⚠ connect EC
npm install 时候报错 gifsicle@5.2.0 postinstall: `node lib/install.js`
> gifsicle@5.2.0 postinstall /usr/local/lib/node_modules/miniprogram-slim/node_modules/gifsicle
> node lib/install.js
⚠ connect ECONNREFUSED 0.0.0.0:443
⚠ gifsicle pre-build test failed
ℹ compiling from source
✖ Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/miniprogram-slim/node_modules/gifsicle/14acef94-4a69-4709-887f-16c28fb0a7b4'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gifsicle@5.2.0 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gifsicle@5.2.0 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:
解决办法:
应该在命令后加参数 --ignore-scripts
解决办法:
应该在命令后加参数 --ignore-scripts
https://huaweicloud.csdn.net/639fefcadacf622b8df90a43.html