7

I'm trying to initialize a directory with truffle init, but I'm getting the following error:

Error: Truffle Box at URL https://github.com/truffle-box/bare-box.git doesn't exist. If you believe this is an error, please contact Truffle support.

The git repository at https://github.com/truffle-box/bare-box.git does exist, so I'm not sure what the problem is. Any help?

10

I found out on Truffle's Gitter channel that something must have broken in version 4. I upgraded to version 5 and the issue is resolved.

How to upgrade (more information here):

npm uninstall -g truffle
npm install -g truffle
  • Thanks Joel - This was driving me nuts. Appreciate it. – Pat Doyle Jan 5 at 17:17
  • 1
    You could mark this answer as the accepted one. – Carlos Fuentes Aug 8 at 16:52
3

I had the same issue when my truffle version was 4.1.14. When I upgraded to version 4.1.15 the issue was solved. I just had to run npm i -g truffle@4.1.15

1

You can also upgrade to maintenance release of truffle v4 as below.

sudo npm uninstall -g truffle 
sudo npm install -g truffle@4.1.15

Truffle unbox and other command remains same.

-1

//First check the current version $ truffle version

//Uninstall previous version when you desire a new version $ sudo npm uninstall -g truffle

//install the new version of truffle $ sudo npm install -g truffle

//check the version again to know you have got the latest one $ truffle version

//try initialize truffle after creating a directory and changing current directory

$ mkdir truffleWonder

$ cd truffleWonder

$ truffle init

By the will of God you will complete initializing of of your project. Then you can proceed further.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.