Search code examples
ipfsdecentralized-applications

Error: ipfs configuration file already exists


I already install ipfs via go ipfs. and I don't know why I encounter an error when I want to run "ipfs init " in my Terminal. could anyone help me to figure out where is the problem? here is an image of my Terminal:

enter image description here


Solution

  • The default IPFS repository path is ~/.ipfs. Perhaps you can try to change your default path using:

    export IPFS_PATH=/path/to/ipfsrepo
    

    And then run:

    ipfs init
    

    Also, have you by any chance installed go-ipfs from snap?