Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
varshadqz opened this issue May 3, 2024 · 0 comments
Open

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

varshadqz opened this issue May 3, 2024 · 0 comments

Comments

@varshadqz
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant