imagemin / imagemin-gifsicle

Imagemin plugin for Gifsicle
MIT License
118 stars 55 forks source link

Syntax Error: Error: Cannot find module 'imagemin-gifsicle' #59

Open varshadqz opened 7 months ago

varshadqz commented 7 months ago

for my Vuejs project, I update the NodeJS version to v20.11.1 and the NPM version to 10.6.0. In package.json did change, "image-webpack-loader": "^8.1.0", and trying running npm install (before this I deleted the node_modules folder), later I ran the command npm run build, it gave error:

 error  in ./src/assets/PDF.png
Syntax Error: Error: Cannot find module 'imagemin-gifsicle'

I also tried installing this package manually by adding it to package.json: "imagemin-gifsicle":"7.0.0" still it is still throwing errors.

npm error code 1
npm error path D:\Projects\FileVista\CyberMetaQ_FrontEnd\cmq.frontend\node_modules\gifsicle
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node lib/install.js
npm error compiling from source
npm error To get a Buffer, set `options.responseType` to `buffer` instead
npm error gifsicle pre-build test failed
npm error (node:46048) DeprecationWarning: Got: "options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "autoreconf -ivf"
npm error 'autoreconf' is not recognized as an internal or external command,
npm error operable program or batch file.
npm error
npm error
npm error     at D:\Projects\FileVista\CyberMetaQ_FrontEnd\cmq.frontend\node_modules\bin-build\node_modules\execa\index.js:231:11
npm error     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm error     at async Promise.all (index 0)

How to resolve this problem?