Error installing screeps server
See original GitHub issueThere 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:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top GitHub Comments
newer version of node don’t work, you have to go back to node 12 at the latest, I got this to work with:
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 ?