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

remove " from npm install prefix option

to fix npm 7
This commit is contained in:
Dave Conway-Jones 2020-11-05 09:19:47 +00:00
parent 75d7ac2d8a
commit a58f4c2ec2
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

View File

@ -136,7 +136,7 @@ function installModule(module,version,url) {
} }
var installDir = settings.userDir || process.env.NODE_RED_HOME || "."; var installDir = settings.userDir || process.env.NODE_RED_HOME || ".";
var args = ['install','--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix="~"','--production',installName]; var args = ['install','--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix=~','--production',installName];
log.trace(npmCommand + JSON.stringify(args)); log.trace(npmCommand + JSON.stringify(args));
exec.run(npmCommand,args,{ exec.run(npmCommand,args,{
cwd: installDir cwd: installDir