laverdet / screeps-steamless-client

57 stars 20 forks source link

Unexpected identifier import os from 'os'; #9

Open FutureAstroMiner opened 2 years ago

FutureAstroMiner commented 2 years ago

I am getting an error when trying to run npx after running npm install -g screeps-steamless-client.

$ npx screeps-steamless-client /usr/local/lib/node_modules/screeps-steamless-client/dist/index.js:2 import os from 'os'; ^^

SyntaxError: Unexpected identifier at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

tiennou commented 1 year ago

I got that one too (well only the Unexpected identifier line) and fixed it by switching back to my system node (v20).

MiguelBamberino commented 10 months ago

works on node 18 too.