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?


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
|improve this answer|||||
  • Thanks Joel - This was driving me nuts. Appreciate it. – Pat Doyle Jan 5 '19 at 17:17
  • 1
    You could mark this answer as the accepted one. – Carlos Fuentes Aug 8 '19 at 16:52

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

|improve this answer|||||

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.

|improve this answer|||||

//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.

|improve this answer|||||

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.