question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation doesnt work.

See original GitHub issue

Ok. I have been trying to install the bot now for over 5 hours and it still dosn’t work. I have tryed it multiple times now but it doesn’t seem to work. Here is the log of the npm test maby it can help. http://pastebin.com/raw/2bLTtDMn

Also I tryed to use this: var mineflayer = require('mineflayer'); but it also throws this error in chrome: Uncaught ReferenceError: require is not defined

Soooo can someone help me to get it installed proerly? And not only “npm install mineflayer” because this doesn’t work…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
roblablacommented, Jan 31, 2017

@Kavatch rm -rf everything. Do this :

# Create the project folder. All your minecraft bot stuff will be in there
mkdir my_minecraft_bot
# Move into the project folder
cd my_minecraft_bot
# Create the necessary files for npm/nodejs to function.
# It will ask you a few questions, answer them. the defaults should be fine
npm init
# Install mineflayer. Mineflayer is a library, kind of like jquery.
npm i --save mineflayer
# Install mineflayer-navigate. This is a library as well.
npm i --save rom1504/mineflayer-navigate#update_vec3
# Write your bot's source in index.js. Here, we're downloading it from the internet
# (I fixed up your pastebin).
curl http://pastebin.com/raw/NayLXamq > index.js
# Run the bot now :D
node index.js

This is the proper way to start a nodejs project 😄.

1reaction
rom1504commented, Jan 31, 2017

ok so put version:"1.8.8" in createBot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Install Apps or Software on Windows? Here's What ...
1. Reboot Your Computer · 2. Check App Installer Settings in Windows · 3. Free Up Disk Space on Your PC · 4....
Read more >
How to troubleshoot Windows Installer errors - Microsoft Support
Right-click Windows Installer, and then click Properties. If the Startup type box is set to Disabled, change it to Manual. Click OK to...
Read more >
Can't Install Anything on Windows 10: 7 Easy Expert fixes
1. Terminate the Windows Installer process · 2. Disable Fast Startup · 3. Use Windows troubleshooter · 4. Run critical services · 5....
Read more >
Windows Installer not working properly in Windows 11/10
Windows Installer (msiserver) not working · 1] Run Program Install & Uninstall Troubleshooter · 2] Start the Windows Installer Service · 3] Windows ......
Read more >
[SOLVED] Windows 10 Could Not Complete the Installation + ...
Fix 4. Run the Installation in Clean Boot · Open Run dialog. · Type msconfig in the box and click OK to continue....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found