Create .npmrc
file in your user profile folder. D:\Users\<username>\.npmrc
USE .npmrc file from LastPass ! if Snowleopard is not working, do the next step, but skip the rest.
For snowleopard you need to run
npm login --registry=https://repo.ds365.ai/artifactory/api/npm/snowleopard-npm-all/ --auth-type=web --scope=@snowleopard
Authenticate using your OEC credentials (the one without @Halliburton.com)
The below docs does not work for us due to access issues.
See docs for more info about npmrc
cd $env:USERPROFILE
#Create the .npmrc file if needed
New-Item -ItemType File -Path .\.npmrc
code .\.npmrc
To generate a JFrog token
- Go to https://repo.ds365.ai/ui/repos/tree/General/dswc-npm-all
- Click
Set Me Up
in the top right corner - Click
Generate token and Create instructions
- Scroll down to
Edit .npmrc (Unscoped)
and copy+paste the settings into your~\.npmrc
file
Add the following to your npmrc
file (Below the auth settings from above)
@dswc:registry=https://repo.openearth.community/artifactory/api/npm/dswc-npm-all
@webframework:registry=https://repo.openearth.community/artifactory/api/npm/webframework-npm-all
@fdp:registry=https://repo.openearth.community/artifactory/api/npm/fdp-npm-all
@snowleopard:registry=https://repo.openearth.community/artifactory/api/npm/snowleopard-npm
registry=https://repo.openearth.community/artifactory/api/npm/dswc-npm-all
When working on Angular 16 projects you also need to add
@nextgengraphics:registry=https://repo.openearth.community/artifactory/api/npm/nextgengraphics-npm-all
@distservices:registry=https://repo.openearth.community/artifactory/api/npm/distservices-npm