mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user