mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 03:15:11 +00:00
core: fix CLI tools from npm packages not being accessible after install on Windows
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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: "",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user