Skip to content

Instantly share code, notes, and snippets.

@m-x-k
Last active December 3, 2022 04:51
Show Gist options
  • Save m-x-k/0c863b81dc108231086dba92973078bc to your computer and use it in GitHub Desktop.
Save m-x-k/0c863b81dc108231086dba92973078bc to your computer and use it in GitHub Desktop.
Setting up JFrog artifactory for NPM
docker pull docker.bintray.io/jfrog/artifactory-oss:latest
docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss
# In browser open http://localhost:8081 and follow basic steps
# Add new remote repository: http://localhost:8081/artifactory/webapp/#/admin/repositories/remote
# URL: https://registry.npmjs.org
# RepositoryLayout: NPM default
# Add new virtual repository of type "Generic" using remote repository above
# URL: http://localhost:8081/artifactory/webapp/#/admin/repositories/virtual
# Repository Key: npmjs
# Create mini npm app to test
mkdir /tmp/mytest; cd /tmp/mytest
echo "registry=http://localhost:8081/artifactory/npmjs" .npmrc
npm install react
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment