Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
por qué las dependencias de URL de npm no obtuvieron el código más nuevo

Modifico un código fuente público de repositorio npm y ahora quiero usar la versión modificada usando la URL de github en package.json . Luego cambio las dependencias en package.json así:

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

Después de instalar las dependencias usando el comando npm ci , verifico el código fuente de la carpeta node_modules de origen del proyecto local. parece que el npm no obtuvo el código modificado más reciente de github y todavía usa este código heredado. También probé esto en package.json :

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

todavía no funcionó. También traté de eliminar la carpeta local translate.js y volver a descargar las dependencias, aún así no funcionó. ¿Me estoy perdiendo de algo? ¿Qué debo hacer para usar la URL y hacer que obtenga el código más nuevo? La estructura de la carpeta local se ve así:

ingrese la descripción de la imagen aquí

¿Debería compilar antes de usar este repositorio? También traté de usar un comando como este:

 npm install

pero muestra un error como este:

 [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

mi versión de nodo es v8.17.0.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Instalo las dependencias usando este comando:

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

y el package.json se ve así:

 "translation.js": "github:jiangxiaoqiang/translation.js",
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!