core: fix CLI tools from npm packages not being accessible after install on Windows
This commit is contained in:
parent
b1a15d559b
commit
ceb79c786a
2 changed files with 3 additions and 5 deletions
|
|
@ -287,9 +287,7 @@ export namespace Config {
|
||||||
|
|
||||||
// Install any additional dependencies defined in the package.json
|
// Install any additional dependencies defined in the package.json
|
||||||
// This allows local plugins and custom tools to use external packages
|
// This allows local plugins and custom tools to use external packages
|
||||||
await Npm.install(dir).catch((err) => {
|
await Npm.install(dir)
|
||||||
log.warn("failed to install dependencies", { dir, error: err })
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function isWritable(dir: string) {
|
async function isWritable(dir: string) {
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ export namespace Npm {
|
||||||
|
|
||||||
const arborist = new Arborist({
|
const arborist = new Arborist({
|
||||||
path: dir,
|
path: dir,
|
||||||
binLinks: !(process.platform === "win32" && process.env.CI),
|
binLinks: true,
|
||||||
progress: false,
|
progress: false,
|
||||||
savePrefix: "",
|
savePrefix: "",
|
||||||
})
|
})
|
||||||
|
|
@ -86,7 +86,7 @@ export namespace Npm {
|
||||||
log.info("installing dependencies", { dir })
|
log.info("installing dependencies", { dir })
|
||||||
const arb = new Arborist({
|
const arb = new Arborist({
|
||||||
path: dir,
|
path: dir,
|
||||||
binLinks: false,
|
binLinks: true,
|
||||||
progress: false,
|
progress: false,
|
||||||
savePrefix: "",
|
savePrefix: "",
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue