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

Create node_modules in userDir

This ensures npm install puts modules under .node-red even if there's
already a node_modules dir in the parent directory.
This commit is contained in:
Nick O'Leary 2016-03-01 22:08:37 +00:00
parent 0e2d13172a
commit dcd8b3699c

View File

@ -135,7 +135,7 @@ var localfilesystem = {
} catch(err) { } catch(err) {
settings.userDir = fspath.join(process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE || process.env.NODE_RED_HOME,".node-red"); settings.userDir = fspath.join(process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE || process.env.NODE_RED_HOME,".node-red");
if (!settings.readOnly) { if (!settings.readOnly) {
promises.push(promiseDir(settings.userDir)); promises.push(promiseDir(fspath.join(settings.userDir,"node_modules")));
} }
} }
} }