ok so here is my code im not sure what the problem is because if i manually type node start.js username:[email protected]:22225 it works fine. Thanks in advance
const cp = require('child_process') const path = require('path') const proxies =['username:[email protected]:22225','username:[email protected]:22225','username:[email protected]:22225'] var sleep = require('sleep') var maxproxies = 30 for (let i = 0; i < proxies.length; i++) { var child = cp.fork("./index.js", proxies[i]) console.log('Proxy '+ i+1 + ' loaded') sleep.sleep(5) } but when i load it errors with this TypeError [ERR_INVALID_ARG_VALUE]: The argument 'arguments[1]' is invalid. Received 'username:[email protected]:22225' ?[90m at Object.fork (child_process.js:73:13)?[39m at Object.<anonymous> (C:\Users\smkam\Desktop\test\start.js:7:20) ?[90m at Module._compile (internal/modules/cjs/loader.js:956:30)?[39m ?[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)?[39m ?[90m at Module.load (internal/modules/cjs/loader.js:812:32)?[39m ?[90m at Function.Module._load (internal/modules/cjs/loader.js:724:14)?[39m ?[90m at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)?[39m ?[90m at internal/main/run_main_module.js:17:11?[39m { code: ?[32m'ERR_INVALID_ARG_VALUE'?[39m ?