Closed KeithGillette closed 2 months ago
@KeithGillette I don't understand the issue here. It sounds like maybe you have some incorrect versions in your app?
Hi, @RobbieTheWagner — No, I'm talking about this project. I can use the published library in my own project without error. I cloned this repository and performed npm install
and got those installation errors. I should mention I'm using node 18.16.1
.
Ah, okay. Sorry, I misunderstood. I noticed the same thing, but not sure how to fix it.
I don't know anything about building Angular libraries and usually pin all dependencies at a known compatible version but was able to resolve the issue by replacing the carets with tildes to narrow the version ranges:
{
"name": "angular-shepherd",
"version": "16.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build_lib": "ng build shepherd",
"npm_pack": "cd dist/angular-shepherd && npm pack",
"package": "npm run build_lib && npm run npm_pack"
},
"private": true,
"dependencies": {
"@angular/animations": "~16.1.6",
"@angular/common": "~16.1.6",
"@angular/compiler": "~16.1.6",
"@angular/core": "~16.1.6",
"@angular/platform-browser": "~16.1.6",
"@angular/platform-browser-dynamic": "~16.1.6",
"core-js": "~3.31.1",
"rxjs": "~7.8.1",
"shepherd.js": "~11.0.1",
"tslib": "~2.6.0",
"zone.js": "~0.13.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~16.1.5",
"@angular-eslint/builder": "16.1.0",
"@angular-eslint/eslint-plugin": "16.1.0",
"@angular-eslint/eslint-plugin-template": "16.1.0",
"@angular-eslint/schematics": "16.1.0",
"@angular-eslint/template-parser": "16.1.0",
"@angular/cli": "~16.1.5",
"@angular/compiler-cli": "~16.1.6",
"@angular/language-service": "~16.1.6",
"@angular/router": "~16.1.6",
"@types/jasmine": "~4.3.5",
"@types/jasminewd2": "~2.0.10",
"@types/node": "~20.4.2",
"@typescript-eslint/eslint-plugin": "6.0.0",
"@typescript-eslint/parser": "6.0.0",
"eslint": "~8.44.0",
"jasmine-core": "~5.0.1",
"jasmine-spec-reporter": "~7.0.0",
"karma": "~6.4.2",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "~16.1.0",
"protractor": "~7.0.0",
"ts-node": "~10.9.1",
"typescript": "~5.1.6"
},
"volta": {
"node": "18.12.0"
}
}
I'm hoping this magically resolved itself. Closing for now.
An
npm install
on this project produces: