feat: Support community nodes on Windows (#3823)

* 🐛 Account for `APPDATA` in env

* 🐛 Prevent starter installation

* 🐛 Account for Win-style path delimiter

* 👕 Fix lint
This commit is contained in:
Iván Ovejero
2022-08-03 18:10:59 +02:00
committed by GitHub
parent 74cedd94a8
commit e8eda7470a
4 changed files with 21 additions and 2 deletions

View File

@@ -64,7 +64,8 @@ class LoadNodesAndCredentialsClass {
LoggerProxy.init(this.logger);
// Make sure the imported modules can resolve dependencies fine.
process.env.NODE_PATH = module.paths.join(':');
const delimiter = process.platform === 'win32' ? ';' : ':';
process.env.NODE_PATH = module.paths.join(delimiter);
// @ts-ignore
module.constructor._initPaths();