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

304
Visualizações
why the npm url dependencies did not fetch the newest code

I modify a public npm repo source code and now I want to use the modified version by using the github url in package.json. Then I change the dependencies in package.json like this:

"translation.js": "git+ssh://git@github.com/jiangxiaoqiang/translation.js.git#master",

After install the dependencies using npm ci command, I check the source code from the local project source node_modules folder. it seems the npm did not fetch the github newest modified code and still using this legacy code. I also tried this in package.json:

"translation.js": "jiangxiaoqiang/translation.js#master",

still did not work. I also tried to delete the local translate.js folder and redownload the dependencies, still did not work. Am I missing something? what should I do to using the url and make it fetch the newest code? The local folder structure look like this:

enter image description here

should I do some compile before used this repo? I also tried to use command like this:

npm install

but shows error like this:

[dolphin@MiWiFi-R4CM-srv]~/Documents/GitHub/crx-selection-translate% npm install
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/jiangxiaoqiang/translation.js.git
npm ERR! 
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dolphin/.npm/_logs/2022-01-04T15_17_56_900Z-debug.log

my node version is v8.17.0.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I install the dependencies using this command:

npm install https://github.com/jiangxiaoqiang/translation.js.git

and the package.json look like this:

"translation.js": "github:jiangxiaoqiang/translation.js",
about 4 years ago · Juan Pablo Isaza 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