mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-22 16:44:36 +00:00
fix: add .quiet
This commit is contained in:
@@ -165,7 +165,7 @@ export namespace Installation {
|
|||||||
|
|
||||||
export async function latest() {
|
export async function latest() {
|
||||||
const registry = await iife(async () => {
|
const registry = await iife(async () => {
|
||||||
const r = (await $`npm config get registry`.throws(false).text()).trim()
|
const r = (await $`npm config get registry`.quiet().nothrow().text()).trim()
|
||||||
const reg = r || "https://registry.npmjs.org"
|
const reg = r || "https://registry.npmjs.org"
|
||||||
return reg.endsWith("/") ? reg.slice(0, -1) : reg
|
return reg.endsWith("/") ? reg.slice(0, -1) : reg
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user