mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
add engine-strict flag to npm install args
This commit is contained in:
parent
9f2a2b9869
commit
676f790933
@ -194,7 +194,7 @@ async function installModule(moduleDetails) {
|
|||||||
"module": moduleDetails.module,
|
"module": moduleDetails.module,
|
||||||
"version": moduleDetails.version,
|
"version": moduleDetails.version,
|
||||||
"dir": installDir,
|
"dir": installDir,
|
||||||
"args": ["--production"]
|
"args": ["--production","--engine-strict"]
|
||||||
}
|
}
|
||||||
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
||||||
// preInstall passed
|
// preInstall passed
|
||||||
|
@ -175,7 +175,7 @@ async function installModule(module,version,url) {
|
|||||||
"dir": installDir,
|
"dir": installDir,
|
||||||
"isExisting": isExisting,
|
"isExisting": isExisting,
|
||||||
"isUpgrade": isUpgrade,
|
"isUpgrade": isUpgrade,
|
||||||
"args": ['--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix=~','--production']
|
"args": ['--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix=~','--production','--engine-strict']
|
||||||
}
|
}
|
||||||
|
|
||||||
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
return hooks.trigger("preInstall", triggerPayload).then((result) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user