sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 514 forks source link

Node install fails on PNotify #419

Open michael-sattler opened 10 months ago

michael-sattler commented 10 months ago

Running npm install --save pnotify for a Node app that lists Pnotify as a dependency throws these warnings:

ERESOLVE overriding peer dependency
npm WARN While resolving: @pnotify/bootstrap4@5.2.0
npm WARN Found: bootstrap@3.4.1
npm WARN node_modules/pnotify/node_modules/bootstrap
npm WARN   peer bootstrap@"^3.4.1" from @pnotify/bootstrap3@5.2.0
npm WARN   node_modules/pnotify/node_modules/@pnotify/bootstrap3
npm WARN     @pnotify/bootstrap3@"5.2.0" from pnotify@5.2.0
npm WARN     node_modules/pnotify
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer bootstrap@"^4.4.1" from @pnotify/bootstrap4@5.2.0
npm WARN node_modules/pnotify/node_modules/@pnotify/bootstrap4
npm WARN   @pnotify/bootstrap4@"5.2.0" from pnotify@5.2.0
npm WARN   node_modules/pnotify
npm WARN
npm WARN Conflicting peer dependency: bootstrap@4.6.2
npm WARN node_modules/bootstrap
npm WARN   peer bootstrap@"^4.4.1" from @pnotify/bootstrap4@5.2.0
npm WARN   node_modules/pnotify/node_modules/@pnotify/bootstrap4
npm WARN     @pnotify/bootstrap4@"5.2.0" from pnotify@5.2.0
npm WARN     node_modules/pnotify

Then running npm start throws this:

ERROR in ./src/Helpers/Functions.js 5:0-46
Module not found: Error: Can't resolve 'pnotify/dist/es/PNotify' in '<node app root>]/src/Helpers'

... same error with /PNotifyStyleMaterial.js and PNotifyButtons

I tried installing with npm install pnotify -legacy-peer-deps ... same error. I tried npm install --force ... same error. I tried manually installing all three missing files from https://unpkg.com/browse/pnotify@4.0.0/ (highest version for which I could find raw files) ... same error. I tried npm install webpack --save-dev (which I think uses pnotify) ... same error. Did a full reinstall from the app root...

rm -rf node_modules/
npm cache clean --force
npm install

... same error

How do I resolve that dependency glitch so I can get my app to run? (npm version: 8.11)

interceptor commented 4 months ago

On first look this project looks very nice and a lot of work went into it. But I am worried that it is no longer maintained...

gotofil commented 2 days ago

Not holding out hope, might as well use something else

https://github.com/sciactive/pnotify/issues/415#issuecomment-853437886

https://github.com/sciactive/pnotify/issues/415#issuecomment-1856164922