Friday, January 14, 2022

Why does nuget always ask for authentication?

 

  1. Goto https://companyname.visualstudio.com/Default/_packaging?_a=feed&feed=Feedname 
  2. Run the command in the directory where your package.json is present
    1. If the package.json is not present. Run the command npm init
    2. npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false  ( This will open an authentication window for your microsoft account)
    3. vsts-npm-auth -config .npmrc
  3. now run npm install and the package should be installed. 

No comments:

Post a Comment