Hey guys, I’m having trouble with my project that uses a JFrog repo. I tried to clean up by deleting the node_modules folder and yarn.lock file. But when I run yarn
, I get this error:
error Couldn't find package "babel-core" on the "npm" registry.
My .npmrc file has always-auth = true
. Here’s my setup:
- Node: v8.11.3
- Yarn: 1.17.2
- Global npm packages include appium, create-react-app, and typescript
I’m scratching my head here. Any ideas what could be causing this? Maybe something with the JFrog setup or yarn config? Thanks for any help!
I’ve dealt with similar issues before, and it’s often related to registry configuration. Have you checked if your project’s .yarnrc file is set up correctly? Sometimes the global config doesn’t play nice with project-specific settings.
Try creating a .yarnrc file in your project root (if it doesn’t exist already) and add this line:
registry “https://your-jfrog-url/artifactory/api/npm/npm-repo/”
Replace the URL with your actual JFrog repository URL. This should force Yarn to use the correct registry for your project.
Also, make sure you’re logged in to your JFrog repo. Run ‘yarn login’ and enter your credentials. This solved it for me when I had a similar problem.
If that doesn’t work, you might need to check with your JFrog admin. Sometimes there are permission issues that can cause these kinds of errors.
It seems like there might be an issue with your JFrog repository configuration. First, ensure your .npmrc file includes the correct registry URL for JFrog. You may need to add something like registry=https://your-jfrog-instance/artifactory/api/npm/npm-repo/
. Also, check if you have the necessary authentication tokens set up correctly for JFrog. Sometimes, package resolution fails due to authentication problems. If these steps don’t work, try running yarn install --verbose
to get more detailed error logs, which could provide additional insights into the problem.
hey emmat83, sounds frustrating! have u tried clearing yarn’s cache? sometimes that helps with weird package issues. run yarn cache clean
and then try installing again. also double-check ur .yarnrc file to make sure the JFrog repo URL is correct. good luck!