If you have just created a new folder and ran truffle init and got an error similar to below

truffle init
Downloading…
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.
at Request._callback (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-box/lib/utils/unbox.js:50:1)
at Request.self.callback (/usr/local/lib/node_modules/truffle/build/webpack:/~/request/request.js:185:1)
at Request.emit (events.js:189:13)
at Request. (/usr/local/lib/node_modules/truffle/build/webpack:/~/request/request.js:1157:1)
at Request.emit (events.js:189:13)
at IncomingMessage. (/usr/local/lib/node_modules/truffle/build/webpack:/~/request/request.js:1079:1)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1107:12)
at process.internalTickCallback (internal/process/next_tick.js:72:19)

 

then try to do “npm uninstall -g truffle” and then “npm install -g truffle”. When I did this I got:

Preparing to download

Downloading

Cleaning up temporary files

Setting up box

Unbox successful. Sweet!

Frustrating that it happened in the first place!

Leave a Reply

Your email address will not be published. Required fields are marked *