1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

let node installer try to save with ~ version prefix to allow minor updates

This commit is contained in:
Dave Conway-Jones 2017-06-27 10:17:09 +01:00
parent 2482d122b8
commit 303f67c036
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D

View File

@ -99,7 +99,7 @@ function installModule(module,version) {
} }
var installDir = settings.userDir || process.env.NODE_RED_HOME || "."; var installDir = settings.userDir || process.env.NODE_RED_HOME || ".";
var child = child_process.execFile(npmCommand,['install','--save','--save-exact','--production',installName], var child = child_process.execFile(npmCommand,['install','--save','--save-prefix="~"','--production',installName],
{ {
cwd: installDir cwd: installDir
}, },