I have set up a Nexus 3 Manager to host private npm packages. The nexus contains three npm repositories, one hosted
, one proxy
and one group
to combine the other two. The npm bearer realm
if activated and i am using a nexus user with admin role for testing.
I have now set up a simple angular library via the angular cli for publishing. In the angular project i configured the .npmrc
like follows:
registry=https://urlToMyNexus/repo/npm-all/
_authToken=NpmToken.XXXX
Now i want to install all packages over the set up group repository in nexus via yarn install
. The .npmrc
and .yarnrc
in home home dictionary are empty.
The preconfigured package.json
looks looks like follows:
{
"name": "test-libraries",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~9.1.1",
"@angular/common": "~9.1.1",
"@angular/compiler": "~9.1.1",
"@angular/core": "~9.1.1",
"@angular/forms": "~9.1.1",
"@angular/platform-browser": "~9.1.1",
"@angular/platform-browser-dynamic": "~9.1.1",
"@angular/router": "~9.1.1",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.1",
"@angular-devkit/build-ng-packagr": "~0.901.1",
"@angular/cli": "~9.1.1",
"@angular/compiler-cli": "~9.1.1",
"@angular/language-service": "~9.1.1",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.4.1",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"ng-packagr": "^9.0.0",
"protractor": "~5.4.3"
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.8.3"
}
}
The yarn install
command is now able to install all @angular
packages in the dependencies
, but fails at rxjs
. It gives the error error Couldn't find package "rxjs" on the "npm" registry.
If I try npm install
with the same configuration all packages are installed correctly over the nexus repository.
Does anybody had the same problem?