Skip to content

Commit

Permalink
fix: fix path for win32 Nouvelle initialisation de l'application #47
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Sep 1, 2024
1 parent 8fec545 commit a1b5f43
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ export const initPluginCanInstall = (
}
if (stderr) mainLog.debug(`stderr: ${stderr}`)
if (stdout) {
const returned: string = path.join(
stdout.trim(),
`lib`,
`node_modules`
)
const returned: string =
os.platform() === 'win32'
? path.join(stdout.trim(), `node_modules`)
: path.join(stdout.trim(), `lib`, `node_modules`)
// mainLog.debug(`Node path: ${returned}`)
toReturned.result = true
toReturned.message = `User can install plugins in ${returned}`
Expand Down

0 comments on commit a1b5f43

Please sign in to comment.