Jump to content
McKay Development

Error: Cannot find module 'steamcommunity'


Recommended Posts

Guest PrEdAtOr_IWD
Posted

So i am new to steam bot making and i am following this quide https://github.com/charredgrass/nodejs-bot-guide,

I have to install steamcommunity with npm install and after it run login.js file.

I tried to install it globally and think it did, when i need to run the file it says it cannot find it.

 

This is the code from login.js file:

 

var SteamCommunity = require('steamcommunity');
var steam = new SteamCommunity();

var logOnOptions = {
'accountName': "I have put my username here",
'password': "and password here"
};

//logs in via browser
steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) {
if (err) {
console.log("There was an error logging in! Error details: " + err.message);
process.exit(1); //terminates program
} else {
console.log("Successfully logged in as " + logOnOptions.accountName);
steam.chatLogon();
}
});

Guest PrEdAtOr_IWD
Posted

This time i didnt install it globally and got the same error... what could be the problem?

  • Dr. McKay changed the title to Error: Cannot find module 'steamcommunity'

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...