pnotify icon indicating copy to clipboard operation
pnotify copied to clipboard

Node install fails on PNotify

Open michael-sattler opened this issue 2 years ago • 2 comments

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/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/pnotify/node_modules/bootstrap
npm WARN   peer bootstrap@"^3.4.1" from @pnotify/[email protected]
npm WARN   node_modules/pnotify/node_modules/@pnotify/bootstrap3
npm WARN     @pnotify/bootstrap3@"5.2.0" from [email protected]
npm WARN     node_modules/pnotify
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer bootstrap@"^4.4.1" from @pnotify/[email protected]
npm WARN node_modules/pnotify/node_modules/@pnotify/bootstrap4
npm WARN   @pnotify/bootstrap4@"5.2.0" from [email protected]
npm WARN   node_modules/pnotify
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/bootstrap
npm WARN   peer bootstrap@"^4.4.1" from @pnotify/[email protected]
npm WARN   node_modules/pnotify/node_modules/@pnotify/bootstrap4
npm WARN     @pnotify/bootstrap4@"5.2.0" from [email protected]
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/[email protected]/ (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)

michael-sattler avatar Aug 18 '23 00:08 michael-sattler

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...

interceptor avatar Feb 14 '24 11:02 interceptor

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

gotofil avatar Jul 03 '24 18:07 gotofil