Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

252
Visualizações
npm install from vso

I'm just going to throw all this out there and hope SO can help..

My situation is that I need to npm install -s from a Visual Studio Online hosted git repo. I have seen how to do this from github and bitbucket. I guessed that the process would be the same but when I run npm install, nothing happens. I expected that at a minimum, the index.js, the readme.md and the package.json would be pulled.

I created a simple repo at https://ldcjtctest.visualstudio.com/_git/MyFirstProject

this project contains these files:

project file structure

I have tried running npm install with ssh and https but both give me the following with verbose logging:enter image description here

What am I missing?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Steps for Https:

  1. Create personal access token
  2. Command:npm install git+https://test:[personal access token]@[account name].visualstudio.com/[team project]/_git/[repository].

Steps for SSH:

  1. General SSH key without passphrase and add the public key to your VSTS.
  2. Optional, run git clone with ssh to do test to make sure the SSH key works fine
  3. Command npm install git+[ssh address].

Note: Tested with 3.10.10 (npm -v)

over 4 years ago · Santiago Trujillo Relatório

0

After researching, I discovered that the quickest way to accomplish what I wanted was to create a feed. I just followed the MS documentation on how to do this.

*Note: I had an issue when following the instructions linked here. I kept getting an unauthorized error. It took me a while, but I found out that when running the command vsts-npm-auth -config .npmrc, my .npmrc file was not being created locally, but on a shared drive. when I moved that file to c:/users/<yourself>/ it worked as expected.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda