boris-jenicek/ngx-awesome-popup

Unable to install

Closed this issue ยท 7 comments

I am unable to install ngx-awesome-popup

D:\development\workspaces\lwwork\joulez-ui>npm i @costlydeveloper/ngx-awesome-popup
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: joulez-ui@0.0.0
npm ERR! Found: rxjs@6.6.7
npm ERR! node_modules/rxjs
npm ERR! rxjs@"~6.6.0" from the root project
npm ERR! peer rxjs@"^6.5.3" from @angular/common@12.1.5
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~12.1.0" from the root project
npm ERR! peer @angular/common@">8.0.0" from @costlydeveloper/ngx-awesome-popup@2.0.1
npm ERR! node_modules/@costlydeveloper/ngx-awesome-popup
npm ERR! @costlydeveloper/ngx-awesome-popup@"" from the root project
npm ERR! 1 more (@angular/core)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@">6.
." from @costlydeveloper/ngx-awesome-popup@2.0.1
npm ERR! node_modules/@costlydeveloper/ngx-awesome-popup
npm ERR! @costlydeveloper/ngx-awesome-popup@"
" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Agnihotra\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Agnihotra\AppData\Local\npm-cache_logs\2021-10-29T03_15_38_186Z-debug.log

Can you share your packages.json?

The only thing required is to have preinstalled angular 9+ (it is actually ruled 8+, but 9+ is officially supported) and rxjs version 6..
Rxjs comes with angular so it doesn't need to be separately installed.

Required by the library is this only:
"@angular/common": ">8.0.0",
"@angular/core": ">8.0.0",
"rxjs": ">6.."

Same problem with me.

package.json:

{
"name": "client",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
"private": true,
"dependencies": {
"@angular/animations": "~12.2.0",
"@angular/common": "~12.2.0",
"@angular/compiler": "~12.2.0",
"@angular/core": "~12.2.0",
"@angular/forms": "~12.2.0",
"@angular/platform-browser": "~12.2.0",
"@angular/platform-browser-dynamic": "~12.2.0",
"@angular/router": "~12.2.0",
"@ng-select/ng-select": "^7.3.0",
"bootstrap": "^4.5.3",
"font-awesome": "^4.7.0",
"ngx-bootstrap": "^7.1.0",
"ngx-pagination": "^5.1.1",
"ngx-schema-form": "^2.6.6",
"ngx-toastr": "^14.1.3",
"rxjs": "~6.6.0",
"select2": "^4.1.0-rc.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~12.2.10",
"@angular/cli": "~12.2.10",
"@angular/compiler-cli": "~12.2.0",
"@types/jasmine": "~3.8.0",
"@types/node": "^12.11.1",
"jasmine-core": "~3.8.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "~4.3.5"
}
}

Ok, thank you @oRoz89 I will investigate that soon.

thank you for reply. I just successfully installed package adding "--force" to command ned, 31. lis 2021. u 13:51 CostlyDeveloper @.***> napisao je:
โ€ฆ
something is strange there, I have made a project with your package.json and I have no problem with installing this library, In this moment I think it is the problem with something else, I will continue with trying to reproduce that scenario. โ€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGSBFNDHGEJWLVDTV3FL3DUJU3WBANCNFSM5G6KIZQA .

np, thank you, I found something probably related to the npm version. I found this issue, npm/cli#3152 I will see to make changes if new version of npm criteria changed, just working on that,

Yeah it will not be issue in this case to install it with --force because it use only things what angular use, and there is no 3rd party libraries needed.

Many thanks to @agnirpoli and @oRoz89 for reporting and helping resolve this issue, this should be fixed in this new release https://github.com/costlydeveloper/ngx-awesome-popup/releases/tag/2.0.2

P.S. If you find this useful, don't hesitate to give a star to a GitHub repo.