core: fix CLI tools from npm packages not being accessible after install on Windows

pull/16961/head
Dax Raad 2026-03-10 00:11:18 -04:00
parent b1a15d559b
commit ceb79c786a
2 changed files with 3 additions and 5 deletions

View File

@ -287,9 +287,7 @@ export namespace Config {
// Install any additional dependencies defined in the package.json
// This allows local plugins and custom tools to use external packages
await Npm.install(dir).catch((err) => {
log.warn("failed to install dependencies", { dir, error: err })
})
await Npm.install(dir)
}
async function isWritable(dir: string) {

View File

@ -52,7 +52,7 @@ export namespace Npm {
const arborist = new Arborist({
path: dir,
binLinks: !(process.platform === "win32" && process.env.CI),
binLinks: true,
progress: false,
savePrefix: "",
})
@ -86,7 +86,7 @@ export namespace Npm {
log.info("installing dependencies", { dir })
const arb = new Arborist({
path: dir,
binLinks: false,
binLinks: true,
progress: false,
savePrefix: "",
})