Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I tried adding ipfs to path (for running daemon) #1744

Closed
ygboucherk opened this issue Jan 22, 2021 · 12 comments
Closed

I tried adding ipfs to path (for running daemon) #1744

ygboucherk opened this issue Jan 22, 2021 · 12 comments
Labels
need/author-input Needs input from the original author

Comments

@ygboucherk
Copy link

I had an error that said daemon wasn't running, so I tried adding ipfs to path for adding it to CLI, but I got this error.

If it's hard to fix, I suggest adding an in-gui method for launching daemon !

Specifications

  • OS: win32
  • IPFS Desktop Version: 0.9.7
  • Electron Version: 6.0.12
  • Chrome Version: 76.0.3809.146

Error

Error: spawn powershell.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)
@jessicaschilling
Copy link
Contributor

We'll go over this in our next triage session, but any other details you could provide could be great - namely how you went about adding IPFS to path? What exactly did you do?

@ipfs ipfs deleted a comment from welcome bot Jan 23, 2021
@ygboucherk
Copy link
Author

I wanted to enable daemon for contributing to IPFS. So I wanted to add ipfs to path for running the ipfs daemon command !

@rafaelramalho19
Copy link
Contributor

@ygboucherk if I understand correctly, you replaced your whole windows variable paths to add ipfs and you removed powershell from it?

It doesn't make much sense that powershell.exe is not available in your windows machine.

Can you specify what steps you followed and what caused this error?

@ygboucherk
Copy link
Author

I didn't remove powershell from path, and it's running perfectly from powershell command, and I almost never use powershell (I use CMD)

@ygboucherk
Copy link
Author

And I tried adding it to path from GUI button

@ygboucherk
Copy link
Author

Without manually editing PATH

@rafaelramalho19
Copy link
Contributor

Alright, thanks for clearing that up. Apparently it can happen that you don't have powershell in the path.

Can you try following these steps and try again?

- cmd+q and search env and hit enter
- click environment variables in the advanced tab
- find Path/PATH variable and click edit
- Click new and paste %SystemRoot%/system32/WindowsPowerShell/v1.0

@ygboucherk
Copy link
Author

Okay, thanks

@ygboucherk
Copy link
Author

but, what's cmd+q ?
I'm on windows, not on a mac !

@ygboucherk
Copy link
Author

Should I edit registry (with regedit) ?

@rafaelramalho19
Copy link
Contributor

Sorry, I meant CTRL + Q (or just press the windows icon for the search to activate)

@jessicaschilling jessicaschilling added the need/author-input Needs input from the original author label Feb 5, 2021
@lidel
Copy link
Member

lidel commented Feb 23, 2021

I am afraid the only fix here is to find IPFS Desktop/config.json and manually set:

"ipfsOnPath": false,

We will be deprecating this feature (#1768), if you want ipfs on your PATH follow https://docs.ipfs.io/install/command-line/

@lidel lidel closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/author-input Needs input from the original author
Projects
None yet
Development

No branches or pull requests

4 participants