R:\ig>node i.js
Login session
R:\ig\node_modules\instagram-private-api\dist\core\state.js:163
throw new errors_1.IgUserIdNotFoundError();
^
IgUserIdNotFoundError: Could not extract userid (pk)
at State.extractUserId (R:\ig\node_modules\instagram-private-api\dist\core\state.js:163:23)
at R:\ig\i.js:20:22
at Object. (R:\ig\i.js:42:3)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
(async () => {
const fs = require("fs") const ig = new IgApiClient(); const username = "gaeun_lee_ig"; const password = "rangga20.";
})();
R:\ig>node i.js Login session R:\ig\node_modules\instagram-private-api\dist\core\state.js:163 throw new errors_1.IgUserIdNotFoundError(); ^
IgUserIdNotFoundError: Could not extract userid (pk) at State.extractUserId (R:\ig\node_modules\instagram-private-api\dist\core\state.js:163:23) at R:\ig\i.js:20:22 at Object. (R:\ig\i.js:42:3)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
Node.js v18.19.1
R:\ig>