@node-red/registry
Advanced tools
Comparing version 3.1.8 to 3.1.9
@@ -276,3 +276,3 @@ // This module handles the management of modules required by the runtime and flows. | ||
log.trace(NPM_COMMAND + JSON.stringify(args)); | ||
return exec.run(NPM_COMMAND, args, { cwd: installDir },true) | ||
return exec.run(NPM_COMMAND, args, { cwd: installDir, shell: true },true) | ||
} else { | ||
@@ -279,0 +279,0 @@ log.trace("skipping npm install"); |
@@ -28,8 +28,11 @@ /** | ||
const child_process = require('child_process'); | ||
const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm'; | ||
const isWindows = process.platform === 'win32' | ||
const npmCommand = isWindows ? 'npm.cmd' : 'npm'; | ||
let installerEnabled = false; | ||
let settings; | ||
let settings; | ||
const moduleRe = /^(@[^/@]+?[/])?[^/@]+?$/; | ||
const slashRe = process.platform === "win32" ? /\\|[/]/ : /[/]/; | ||
const slashRe = isWindows ? /\\|[/]/ : /[/]/; | ||
const pkgurlRe = /^(https?|git(|\+https?|\+ssh|\+file)):\/\//; | ||
@@ -229,3 +232,3 @@ const localtgzRe = /^([a-zA-Z]:|\/).+tgz$/; | ||
log.trace(npmCommand + JSON.stringify(args)); | ||
return exec.run(npmCommand,args,{ cwd: installDir}, true) | ||
return exec.run(npmCommand,args,{ cwd: installDir, shell: true }, true) | ||
} else { | ||
@@ -265,3 +268,3 @@ log.trace("skipping npm install"); | ||
if (err.hook === "postInstall") { | ||
return exec.run(npmCommand,["remove",module],{ cwd: installDir}, false).finally(() => { | ||
return exec.run(npmCommand,["remove",module],{ cwd: installDir, shell: true }, false).finally(() => { | ||
throw e; | ||
@@ -362,3 +365,3 @@ }) | ||
return new Promise((resolve, reject) => { | ||
child_process.execFile(npmCommand,['info','--json',installName],function(err,stdout,stderr) { | ||
child_process.execFile(npmCommand,['info','--json',installName],{ shell: true },function(err,stdout,stderr) { | ||
try { | ||
@@ -518,3 +521,3 @@ if (!stdout) { | ||
log.trace(npmCommand + JSON.stringify(args)); | ||
return exec.run(npmCommand,args,{ cwd: installDir}, true) | ||
return exec.run(npmCommand,args,{ cwd: installDir, shell: true }, true) | ||
} else { | ||
@@ -586,3 +589,3 @@ log.trace("skipping npm uninstall"); | ||
return new Promise(resolve => { | ||
child_process.execFile(npmCommand,['-v'],function(err,stdout) { | ||
child_process.execFile(npmCommand,['-v'],{ shell: true },function(err,stdout) { | ||
if (err) { | ||
@@ -589,0 +592,0 @@ log.info(log._("server.palette-editor.npm-not-found")); |
{ | ||
"name": "@node-red/registry", | ||
"version": "3.1.8", | ||
"version": "3.1.9", | ||
"license": "Apache-2.0", | ||
@@ -19,9 +19,9 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@node-red/util": "3.1.8", | ||
"@node-red/util": "3.1.9", | ||
"clone": "2.1.2", | ||
"fs-extra": "11.1.1", | ||
"semver": "7.5.4", | ||
"tar": "6.1.13", | ||
"tar": "6.2.1", | ||
"uglify-js": "3.17.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141914
3485
+ Added@node-red/util@3.1.9(transitive)
+ Addedminipass@5.0.0(transitive)
+ Addedtar@6.2.1(transitive)
- Removed@node-red/util@3.1.8(transitive)
- Removedminipass@4.2.8(transitive)
- Removedtar@6.1.13(transitive)
Updated@node-red/util@3.1.9
Updatedtar@6.2.1