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

[Bug?]: Installing private npm packages in Ubuntu #4072

Closed
1 task
rhernandog opened this issue Feb 5, 2022 · 3 comments
Closed
1 task

[Bug?]: Installing private npm packages in Ubuntu #4072

rhernandog opened this issue Feb 5, 2022 · 3 comments
Labels
bug Something isn't working stale Issues that didn't get attention unreproducible This issue cannot be reproduced on master

Comments

@rhernandog
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

I'm trying to install the private repo files from GreenSock according to their instructions:
https://greensock.com/docs/v3/Installation#private

While this works fine in Windows 10, I'm having issues in Ubuntu 20.04.

If I run the command yarn add gsap@npm:@gsap/<package> I get this response:

➤ YN0000: ┌ Resolution step
➤ YN0001: │ Error: gsap@npm:@gsap/business isn't supported by any available resolver
    at pd.getResolverByDescriptor (/home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:432:5658)
    at pd.bindDescriptor (/home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:432:5047)
    at I (/home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:441:6932)
    at async Promise.all (index 0)
    at async Ke.resolveEverything (/home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:441:8197)
    at async /home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:444:2138
    at async Fe.startTimerPromise (/home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:412:3730)
    at async Ke.install (/home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:444:2077)
    at async /home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:449:122
    at async Function.start (/home/rodrigo/.node/corepack/yarn/3.1.1/yarn.js:412:2287)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 8ms

Also has been suggested in the forums to try this approach as well:

$ npm config set registry https://npm.greensock.com
$ npm config set @gsap:registry https://npm.greensock.com
$ npm config set //npm.greensock.com/:_authToken <your-token-here>
$ yarn add @gsap/shockingly

I have done that and when running yarn add @gsap/shockingly I get this error:

➤ YN0027: @gsap/shockingly@unknown can't be resolved to a satisfying range
➤ YN0035: The remote server failed to provide the requested resource
➤ YN0035:   Response Code: 404 (Not Found)
➤ YN0035:   Request Method: GET
➤ YN0035:   Request URL: https://registry.yarnpkg.com/@gsap%2fshockingly

➤ Errors happened when preparing the environment required to run this command.

To reproduce

  // No dependencies

Environment

System:
    OS: Linux 5.13 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (16) x64 Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz
Binaries:
    Node: 16.13.2 - /tmp/xfs-f7697878/node
    Yarn: 3.1.1 - /tmp/xfs-f7697878/yarn

Additional context

Is worth noticing that since this happened first in an ongoing project, I created a new project without any dependencies (hence the no dependencies in the section To Reproduce using yarn init resulting in this package.json file:

{
  "name": "yarn-bonus",
  "packageManager": "yarn@3.1.1"
}

This command yarn dlx -q envinfo --preset jest didn't return the npm info, so here it is:
npm: 8.1.2

@rhernandog rhernandog added the bug Something isn't working label Feb 5, 2022
@yarnbot
Copy link
Collaborator

yarnbot commented Feb 5, 2022

We couldn't reproduce your issue (all the assertions passed on master).

@yarnbot yarnbot added the unreproducible This issue cannot be reproduced on master label Feb 5, 2022
@yarnbot
Copy link
Collaborator

yarnbot commented Mar 7, 2022

Hi! 👋

This issue looks stale, and doesn't feature the reproducible label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).

Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! 😃

If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded label. Thanks for helping us triaging our repository! 🌟

@yarnbot yarnbot added the stale Issues that didn't get attention label Mar 7, 2022
@yarnbot yarnbot closed this as completed Mar 12, 2022
@davidkhierl
Copy link

davidkhierl commented Apr 8, 2022

I had the same problem and manage to fix it based on this issue #1816

all you need to do is to add the version range

yarn add -D gsap@npm:@gsap/business@^3.10.2 or you can use @latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Issues that didn't get attention unreproducible This issue cannot be reproduced on master
Projects
None yet
Development

No branches or pull requests

3 participants