bower-away не может вызвать зависимость от частного репозитория - PullRequest
0 голосов
/ 14 января 2020

Я пытаюсь перейти с беседки на пряжу. Но я обнаружил, что на этапе, когда мне нужно установить свои пакеты с помощью пряжи, он завершается неудачно со всеми зависимостями моих личных компонентов. Я следую инструкциям, перечисленным здесь https://bower.io/blog/ и здесь https://github.com/sheerun/bower-away

Вот как моя беседка. json ищет рассматриваемый компонент.

    ...
    "bootstrap": "~3.1.1",
    "bower-qtip2": "~2.1.1",
    "MyComponent": "git@github.mycompany.com:myorg/MyComponent.git#v0.0.1",
    "font-awesome": "~4.1.0",
    ...

Это ошибка, которую я получаю

yarn install v1.21.1
[1/5] ?  Validating package.json...
[2/5] ?  Resolving packages...
error An unexpected error occurred: "https://npm.myorg.com/@bower_components%2fMyComponent: not_found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/rbuquet/Sites/Team/myproject/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Так выглядит мой пакет после запуска bower-away

    "ssh2": "^0.4.14",
    "webhdfs": "1.1.1",
    "winston": "^1.0.0",
    "@bower_components/MyComponent": "git@github.myorg.com:Team/MyComponent.git#v0.0.1",
    "@bower_components/angular": "angular/bower-angular#1.2.32",
    "@bower_components/angular-animate": "angular/bower-angular-animate#~1.2.5",
    "@bower_components/angular-bootstrap": "angular-ui/bootstrap-bower#~0.12.1",
    "@bower_components/angular-cookies": "angular/bower-angular-cookies#~1.2.32",
...