MineDojo / Voyager

An Open-Ended Embodied Agent with Large Language Models
https://voyager.minedojo.org/
MIT License
5.34k stars 491 forks source link

Error running npm install -g npx #139

Closed nvihow closed 3 months ago

nvihow commented 6 months ago

I'm trying to install the Node.js packages.

cd voyager/env/mineflayer
npm install -g npx

I got some errors:

npm ERR! code EEXIST
npm ERR! path C:\Users\xxx\AppData\Roaming\nvm\v16.13.0\npx
npm ERR! EEXIST: file already exists
npm ERR! File exists: C:\Users\xxx\AppData\Roaming\nvm\v16.13.0\npx
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Local\npm-cache\_logs\2023-12-29T02_40_13_220Z-debug.log

my info

node -v
v16.13.0

npm -v
8.1.0
galvinw commented 5 months ago

npx is a component of node since node v10. To use, just type npx run instead of npm -g run.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 30 days with no activity.

Coppelian commented 4 months ago

I finished the setup under node.js v20.9.0(LTS) and npm v10.1.0 for windows. For windows user, please check this node.jsnode.js. Hope it helps.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.