Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to use gulp-install with yarn in private package manager #60

Open
lamaldonado opened this issue Sep 18, 2018 · 0 comments
Open

Fail to use gulp-install with yarn in private package manager #60

lamaldonado opened this issue Sep 18, 2018 · 0 comments

Comments

@lamaldonado
Copy link

I'm getting problems using yarn with private package manager

My code:

install() {
    let gulp = this.gulp;
    gulp.task('install', function () {
        return gulp
            .src(['./package.json', './yarn.lock', './.npmrc'])
            .pipe(gulp.dest('./build/'))
            .pipe(install({
              commands: {
                'package.json': 'yarn'
              },
              yarn: ['--verbose', '--production']
            }));
    });
    return this;
}

.npmrc file:

registry=http://{internalServer}
//{internalServer}/:_authToken={Token}
//{internalServer}/:always-auth=true

When the pipeline in GitlabCI runs, I got this error:

error An unexpected error occurred: "http://{internalServer}/buffer/-/buffer-4.9.1.tgz: Request failed \"403 Forbidden\"".

Then running yarn with verbose mode, I can see that it recognize the .npm file

verbose 0.577 Found configuration file "/{path-to-my-module}/build/.npmrc"
verbose 0.578 Found configuration file "/{path-to-my-module}/.npmrc".

Any help is appreciated

@lamaldonado lamaldonado changed the title Fail to use install with yarn in private package manager Fail to use gulp-install with yarn in private package manager Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant