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:
parent
0e2d13172a
commit
dcd8b3699c
@ -135,7 +135,7 @@ var localfilesystem = {
|
||||
} catch(err) {
|
||||
settings.userDir = fspath.join(process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE || process.env.NODE_RED_HOME,".node-red");
|
||||
if (!settings.readOnly) {
|
||||
promises.push(promiseDir(settings.userDir));
|
||||
promises.push(promiseDir(fspath.join(settings.userDir,"node_modules")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user