Skip to content
Snippets Groups Projects
Commit b0266a6c authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Plugins for Windows

parent 12fd4f57
No related branches found
No related tags found
No related merge requests found
...@@ -108,11 +108,15 @@ function npmRemove(what, npm, cwd) { ...@@ -108,11 +108,15 @@ function npmRemove(what, npm, cwd) {
} }
function getNode() { function getNode() {
return process.argv[0].replace(/(node|nw)$/, 'node') return process.argv[0]
.replace(/(node|nw)$/, 'node')
.replace(/(node|nw)\.exe$/, 'nodejs\\node.exe')
} }
function getNPM() { function getNPM() {
return process.argv[0].replace(/(node|nw)$/, 'npm') return process.argv[0]
.replace(/(node|nw)$/, 'npm')
.replace(/(node|nw)\.exe$/, 'nodejs\\node_modules\\npm\\bin\\npm-cli.js')
} }
function getCWD() { function getCWD() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment