near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 92 forks source link

Logged In on browser, not logged in on CLI #1064

Closed Charl00 closed 1 year ago

Charl00 commented 1 year ago

CLI requires su permissions for every command I run. So for example "near login" as a command should work fine on its own but on my machine it fails with EACCESS errors on CLI side while the browser is fine.

When I prefix as follows: "sudo near login" all works fine.

I need help understanding why this CLI, and even the create-near-app command + all files created by it, requires sudo privileges on every command. I have another issue somewhere where I spoke about this.

To be clear, this only happens with NEAR related things. CLI, create-near-app, etc. Nothing else on my machine requires sudo to accomplish tasks or edit files.

Please help.

Charl00 commented 1 year ago

Nuclear option of deleting npm, nvm, etc. solved the problem. Good to know if you have any other people dealing with the same issue.