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.

Error installing screeps server

See original GitHub issue

There is another post that is similar to mine but I have checked the versions. When I run: nxp screeps init I get the following error:

`screeps@screeps:~/world$ npx screeps init In file included from …/src/pf.cc:2:0: …/src/pf.h: In member function ‘screeps::world_position_t screeps::world_position_t::position_in_direction(screeps::world_position_t::direction_t) const’: …/src/pf.h:128:4: warning: control reaches end of non-void function [-Wreturn-type] } ^ module.js:550 throw err; ^

Error: Cannot find module ‘./build/Release/isolated_vm’ at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object.<anonymous> (/home/screeps/.npm/_npx/13414/lib/node_modules/screeps/node_modules/isolated-vm/isolated-vm.js:1:80) at Module._compile (module.js:653:30) at Object.Module._extensions…js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3)

/home/screeps/.npm/_npx/13414/lib/node_modules/screeps/node_modules/webpack-shell-plugin/lib/index.js:168 throw error; ^ 1 `

I installed Ubuntu 18.04.3 in a VM on my desktop. I followed the guide on installing on linux.

Here are the version details:

screeps@screeps:~/world$ uname -a Linux screeps 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux screeps@screeps:~/world$ node --version v8.16.2

I am hoping you can provide some guidance on how to get it to install so I can test some changes prior to making them on the real server.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
legion0commented, Mar 4, 2022

newer version of node don’t work, you have to go back to node 12 at the latest, I got this to work with:

# install nvm from https://github.com/nvm-sh/nvm#installing-and-updating
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

# install node 12
nvm install v12.22.10

# set node 12 as current
nvm use v12.22.10
0reactions
ChuckInGamecommented, Oct 23, 2021

Still failing on Ubuntu: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal

$ node --version v16.12.0 $ python --version Python 2.7.18 $ npm --version 8.1.1

2021-10-23T16_02_34_124Z-debug.log

i think its still failing around isolated_vm. Tried: npm install isolated-vm # vm first to solve a bug during install npm install screeps # install screeps

npm install screepsmod-auth # install auth npm install screepsmod-admin-utils # install utils npm install screeps # reinstall screeps, because the screepsmod-auth will deinstall shit

npx screeps init # init screeps -> go on the webseite printed in the console and add a domain with 127.0.0.1 and copy the resulting key in the console

this script worked 2018 the last i tried to run it. Is there a plan to fix it ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when setting up CLI server on Linux | Screeps Forum
After installing screeps with npm, I tried to fire up the server with "screeps init" and "screeps start". Below is the error i...
Read more >
Dedicated Private Server :: Screeps: World Help
Tried installing node6, but still the same error. If I have steam running the server works so it looks like it is somthing...
Read more >
Can anyone help fixing my error on installing isolated-vm?
The log doesn't help me that much... npm ERR! code 1 npm ERR! path /home/screeps/screeps-server/node_modules/isolated- ...
Read more >
Troubleshooting - Screeps Typescript Starter - GitBook
Unable to upload code to Screeps private server ... Make sure you have screepsmod-auth installed on your private server, and you've set a...
Read more >
How to setup the Screeps standalone server and ... - YouTube
Let's Play Screeps with TypeScript and Visual Studio Code. How to setup the Screeps standalone server and the TypeScript starter project as ...
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