Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't run it #19

Open
JulianICE08935 opened this issue Feb 4, 2023 · 6 comments
Open

I can't run it #19

JulianICE08935 opened this issue Feb 4, 2023 · 6 comments

Comments

@JulianICE08935
Copy link

when I run it, the error message always comes and the download and installation was not successful
Screenshot_20230204-074858

@JulianICE08935
Copy link
Author

Screenshot_20230204-075851

@JulianICE08935
Copy link
Author

Screenshot_20230204-080243

@densellp
Copy link
Collaborator

Please provide index.js file and package.json file

@evokerking1
Copy link

Screenshot_20230204-075851

I keep getting this error as well.

@evokerking1
Copy link

evokerking1 commented Feb 26, 2024

My package.json file { "dependencies": { "friend-connect": "^0.7.6" } "type": "module" }

index.js

import { Session } from "friend-connect";

new Session({
hostName: "Server Name", // The hostname of the server
worldName: "Message of the Day: Hello World", // Use as a MOTD
version: "1.19.62.l.....", // The version of the session, this can be any string.

protocol: 565, //The protocol of the server you are connecting to.

connectedPlayers: 0, // Used as a fallback if pinging the server fails.
maxConnectedPlayers: 40, // Used as a fallback if pinging the server fails.

ip: "tailvile.xyz", // The ip of the server you are using.
port: 19132, // The port of the server you are using.
connectionType: 6, // I don't recommend changing this.

log: true, // If you want to see the console output set to true.
joinability: "joinable_by_friends", // The joinability of the session, if this is changed only one account can be used to connect to the session.
autoFriending: true, // Set this to true if you want to automatically add people who follow the accounts.
pingServerForInfo: true, // If FriendConnect keeps erroring out due to a rakNet ping error you can set this to false.

tokenPath: "./auth", // The path to the directory that contains the authentication tokens.
accounts: ["[email protected]", "[email protected]"], // A list of emails that correspond to accounts you want to use with FriendConnect.

//These are values retrieved from the server on when the server advertisement is fetched, if true it will use a value from above.
constants: {
	//worldName: true,
	//hostName: true,
	maxConnectedPlayers: true,
	connectedPlayers: true,
	//protocol: true,
	version: true,
},

});

@evokerking1
Copy link

I also use bun to install the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants