Jump to content
McKay Development

Recommended Posts

Posted

I'm attempting to get a bot working from the tutorial located at https://github.com/andrewda/node-steam-guide, but I seem to have run into a problem. I've been trying for several hours to get the bot to recognize the "steamcommunity" module on chapter 2.2, but nothing I've tried has worked. I've tried everything from redownloading the associated module to a full reinstall of everything related to the bot. Any help would greatly be appreciated. 

 

The error I get upon attempting to debug using my editor 

 

 

 

C:\Program Files\nodejs\node.exe --inspect-brk=31215 project2.js 

Debugger listening on ws://127.0.0.1:31215/2c8dd882-26aa-4ce1-8981-1bc1e13f131a
Debugger attached.
module.js:549
    throw err;
    ^
 
Error: Cannot find module 'steamcommunity'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (c:\Users\Josh\Desktop\bot trick\project2.js:3:24)
    at Module._compile (module.js:649:14)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
Waiting for the debugger to disconnect...
Error: Cannot find module 'steamcommunity'
module.js:547
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (c:\Users\Josh\Desktop\bot trick\project2.js:3:24)
    at Module._compile (module.js:649:14)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

 

Copied directly from my editor, I narrowed the issue down to line 3 in a previous test, but haven't been able to figure it out. 

 

 

const SteamUser = require('steam-user');

const SteamTotp = require('steam-totp');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');
const client = new SteamUser();
const community = new SteamCommunity();
const manager = new TradeOfferManager({
    steam: client,
    community: community,
    language: 'en'
});

 

The first screenshot shows the admin console with the command I used to download the module as well as the node_modules and steamcommunity folders.
The second screenshot shows the output of the node.js window. 

post-4144-0-85245800-1536219137_thumb.png

post-4144-0-20060900-1536219146_thumb.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...