How to set an .npmrc file to tell npm install to download all the dependencies from https://registry.npmjs.org but only a specific one from a corporate Artifactory under https://artifactory.corporation.io/artifactory/npm/ that needs authentication using ?
How to configure .npmrc file to be able to combine different NPM registries?
3.4k Views Asked by Ghassen At
1
There are 1 best solutions below
Related Questions in NPM-INSTALL
- Are there any known issues with NPM or Node.js when creating a new app?
- npm install has failed i got "ECONNRESET" error
- Npm build error: "Module not found: Error: Can't resolve './component/intro' in
- unable to install npm package from github
- EACCESS Permissioin Denied
- create-react-app command throws npm ENOENT error
- Packages distributed in the github registry cannot be installed
- node.js deployment failing on railway Error: Docker build failed
- I want to Install storage cloud package. during installation show error how to solve this nodemon app.js run successfully ]
- Errors trying to install diskusage node_module
- npm ERR! ENETUNREACH when i try to install dependencies using " npm i "
- creating any new project
- Installing nodejs with node-gyp without internet
- Error when running npm install npm-check - gifsicle pre-build test failed
- facing problem installing react native: Cannot find module ...\node_modules\lru-cache\dist\cjs\index.js
Related Questions in ARTIFACTORY
- Let Artifactory use HTTPS settings
- What is the trigger for JFrog Artifactory to sort a nuget package as "prerelease"?
- Artifactory randomly reports Bad Credentials
- Maven only tries downloading from one repository
- How to list all folders with more then 10 artifacts in artifactory repo using CURL?
- Artifactory Update Error - Migration checksum mismatch for migration 7.25
- Changing the base artifact for gradle plugins
- Download nuspec via NuGet v3 API
- Mount jfrog artifactory with gcs bucket
- "Could not locate artifact" when uploading artifact that already exists?
- Artifactory 404 error from virtual repository where docker pulls fine but crictl does not
- Failed to upload file org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed
- Downloading a Maven dependency from Artifactory results in two JAR and POM files being downloaded
- Jfrog Artifactory REST API Documentation
- Handle replace nodes due to remove or crash at Artifactory
Related Questions in NPM-REGISTRY
- custom registry - why only package.json extracted?
- How can I efficiently tell if a batch of NPM packages has types?
- Is there a way to override the same name `npmScopes` inside `.yarnrc.yml`?
- List all existing npm packages in remote registry
- WEB IDE build - npm ERR! request to https://npm.sap.com
- What's the difference between `NODE_AUTH_TOKEN` and `NPM_AUTH_TOKEN`?
- custom package can't read useState when installed on another package
- How to publish NPM package to NPM registry instead of github registry?
- Convert a linux script to powershell script
- Is there a npm registry query to get the package with to get minor or patch version package details
- How to configure .npmrc file to be able to combine different NPM registries?
- How to run my Vue app if have inside private registry package?
- Understand how NPM works
- Dependabot with AWS CodeArtifact
- npm install gives CERT_HAS_EXPIRED error for sap-cloud-sdk
Related Questions in .NPMRC
- Cannot find module or its corresponding type declarations when importing font awesome pro icons
- Can private npm registries be used in a devcontainer?
- .npmrc file in project directory and in user directory
- How do you add a comment to .npmrc?
- Gitlab personal access token doesn't seem to be used, how to verify it works?
- Inject Font Awesome token as build secret to .npmrc via Dockerfile from GitHub secrets
- WSL - Dockerfile copy hides .npmrc coming from windows filesystem
- Why does my .npmrc work when the _auth value is hardcoded but not when it uses an env var?
- Node env variables within Dockerfile behind a corporate proxy
- How can I hide my git token via variable, used in .npmrc file in angular project?
- Azure Artifacts feed for public npm module
- Use ".npmrc" prefix locally (current project)
- Install private GitLab npm package with a group deploy_token
- how to fix the "npm WARN config `_auth`, `_authToken`, `username` and `_password` must be scoped to a registry." issue
- How can I use GitHub secrets in a .npmrc file?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
We can configure https://registry.npmjs.org as a remote repository(test-npm-remote) in Artifactory. If you have any packages which were developed locally can be deployed to the local(test-npm-local) repository. We can create a virtual repository that consists of local and remote repositories and pull the npm artifacts using the virtual repository(test-npm). You can find more details in the below link. https://jfrog.com/screencast/setting-up-an-npm-registry-with-jfrog-artifactory-in-less-than-one-minute/
Sample NPM client configuration for your reference.
To install a package: npm install <PACKAGE_NAME>