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

yarn( 3.6.4) install not install the library from frog artifactory #6531

Open
1 task
sankar-gp opened this issue Oct 1, 2024 · 5 comments
Open
1 task
Labels
bug Something isn't working

Comments

@sankar-gp
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

I'm using yarn 3.6.4 and when I'm trying to install the library from frog artifactory I'm getting error

following is my yarnrc.yml

npmScopes:
forculus:
npmRegistryServer: https://artifactory-na.bing.com/artifactory/api/npm/test-rn-test-npm-stable-local/
npmPublishRegistry: https://artifactory-na.bing.com/artifactory/api/npm/test-rn-test-npm-stable-local/
npmAuthToken: SFSFSSFSFSFSFSFSFSF
npmAlwaysAuth: true

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.4.cjs

To reproduce

yarn install not working, throwing error

Environment

CPU: Apple M2 Pro
OS: Version 15.0 (24A335)

Additional context

No response

@sankar-gp sankar-gp added the bug Something isn't working label Oct 1, 2024
@sankar-gp sankar-gp changed the title yarn install not install the library from frog artifactory yarn( 3.6.4) install not install the library from frog artifactory Oct 1, 2024
@sankar-gp
Copy link
Author

How to install a library from jfrog artifactoy using yarn v3 in react native app?

@BasixKOR
Copy link
Contributor

BasixKOR commented Oct 2, 2024

Could you attach the error log as well? I can't help since I (and other contributors) don't have access to your repository.

@sankar-gp
Copy link
Author

➤ YN0001: │ Error: @fyndus/fynduscommunicator@npm:0.0.3: @fyndus/fynduscommunicator@npm:0.0.3::__archiveUrl=https%3A%2F%2Fartifactory-fyndus.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Ffyndus-rn-fynduscommunicator-npm-stable-local%2F%40fyndus%2Ffynduscommunicator%2F-%2F%40fyndus%2Ffynduscommunicator-0.0.3.tgz isn't supported by any available resolver
at kf.getResolverByDescriptor (/Users/B412126/.yarn/releases/yarn-3.6.4.cjs:391:1647)
at kf.getCandidates (/Users/B412126/.yarn/releases/yarn-3.6.4.cjs:391:1235)
at W0.getCandidates (/Users/B412126/.yarn/releases/yarn-3.6.4.cjs:435:3323)
at kf.getCandidates (/Users/B412126/.yarn/releases/yarn-3.6.4.cjs:391:1264)
at /Users/B412126/.yarn/releases/yarn-3.6.4.cjs:439:8033
at df (/Users/B412126/.yarn/releases/yarn-3.6.4.cjs:390:11070)
at ge (/Users/B412126/.yarn/releases/yarn-3.6.4.cjs:439:8013)
at async Promise.allSettled (index 5)
at async io (/Users/B412126/.yarn/releases/yarn-3.6.4.cjs:390:10398)
➤ YN0000: └ Completed in 7s 28ms
➤ YN0000: Failed with errors in 7s 30ms

@BasixKOR
Copy link
Contributor

BasixKOR commented Oct 2, 2024

See #5890

@sankar-gp
Copy link
Author

sankar-gp commented Oct 2, 2024

@BasixKOR Can you please provide an detailed sample

This is my .yarnrc.yml file

`nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.4.cjs

npmRegistries:
"https://artifactory-na.fyndus.com/artifactory/api/npm/fyndus-rn-fynduscommunicator-npm-stable-local/":
npmAlwaysAuth: true
npmAuthToken: mytokenhere

npmScopes:
myscope:
npmRegistryServer: https://artifactory-na.fyndus.com/artifactory/api/npm/fyndus-rn-fynduscommunicator-npm-stable-local/`

package.json

{ "name": "com.sample.test", "version": "0.0.1", "private": true, "scripts": { "prepare": "cd ../.. && husky src/app/.husky", "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint_auto_fix": "yarn lint --fix", "generate-release-bundle": "npx react-native build-android --mode=release", "clean": "rm -rf ./android/app/build && rm -rf ./ios/build && rm -rf ./node_modules", "pod-install": "cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install" }, "publishConfig": { "@Fyndus:registry": "https://artifactory-na.fyndus.com/artifactory/api/npm/fyndus-rn-fynduscommunicator-npm-stable-local/" }, "dependencies": { "@apollo/client": "^3.11.8", "@react-navigation/bottom-tabs": "^6.6.1", "@react-navigation/material-top-tabs": "^6.6.14", "@react-navigation/native": "^6.1.18", "@react-navigation/native-stack": "^6.11.0", "@reduxjs/toolkit": "^2.2.7", "@testing-library/react-native": "^12.7.2", "graphql": "^16.9.0", "i18next": "^23.15.1", ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants