sheerun / bower-away

A tool for migrating away from Bower (to Yarn)
307 stars 20 forks source link

How to use bower artifactory? #21

Open nishantkagrawal opened 6 years ago

nishantkagrawal commented 6 years ago

I am currently using the following properties in .bowerrc file. We are using a JFrog artifactory to host our private bower components

registry": {
        "search": [
            "http://domain-api.mycompany.com/artifactory/api/bower/default.bower.global",
            "http://bower.int.xyz.com",
            "https://bower.herokuapp.com"
        ]
    },
    "resolvers": [
        "bower-art-resolver"
    ],

When I ran bower-away it produced something like this

"@bower_components/my-package": "art://my-package/my-package#1.0.0",

My .npmrc file has

registry = "http://domain-api.mycompany.com/artifactory/api/npm/default.npm.global"

When I run yarn, I get

error An unexpected error occurred: "http://domain-api.mycompany.com/artifactory/api/npm/default.npm.global/@bower_components%2my-package: not_found".

How to deal with this?

sheerun commented 6 years ago

I don't think there's plugin for it in Yarn