yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.39k stars 1.11k forks source link

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

Open sankar-gp opened 1 week ago

sankar-gp commented 1 week ago

Self-service

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 commented 1 week ago

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

BasixKOR commented 1 week ago

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 commented 1 week ago

➤ 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 commented 1 week ago

See #5890

sankar-gp commented 1 week ago

@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", ...