daboross / screeps-starter-python

Starter Python AI for screeps, the JavaScript MMO game
MIT License
158 stars 62 forks source link

python3 build.py fails on mac os running 12.6..8 #43

Open Fau57 opened 1 year ago

Fau57 commented 1 year ago

im not sure if this issue is new or similar to the bin removed error previously posted if its the same thing ill just post a comment in the other issues post. This is also my first issues post so if i leave anything out please comment and ill edit the post. here is what my terminal spits out when i tried to python3 build.py. python3 isnt new on my system but node is, so perhaps thats the issue? anyway heres the terminal results: Traceback (most recent call last): File "/Users/user/screeps-starter-python/build.py", line 437, in main() File "/Users/user/screeps-starter-python/build.py", line 426, in main install_node_dependencies(config) File "/Users/user/screeps-starter-python/build.py", line 403, in install_node_dependencies if config.rollup_executable() is not None: File "/Users/user/screeps-starter-python/build.py", line 159, in rollup_executable for path in possible_rollup_binary_paths(self): File "/Users/user/screeps-starter-python/build.py", line 52, in possible_rollup_binary_paths raise Exception("npm bin failed. exit code: {}. command line '{}'. stderr: {}. stdout: {}" Exception: npm bin failed. exit code: 1. command line '/usr/local/bin/npm' 'bin'. stderr: . stdout: Unknown command: "bin"

To see a list of supported npm commands, run: npm help

Thanks in advanced.

FiddlerNeb commented 10 months ago

also seeing this problem in windows pip install --upgrade -r requirements.txt image

FiddlerNeb commented 10 months ago

image

FiddlerNeb commented 10 months ago

figured out this issue! npm bin was depricated in npm +9.0, if you install Node.js <=16.20.2 you will get npm version <=8 https://github.com/grafana/grafana/issues/59425