smartcontractkit / truffle-starter-kit

An example smart contract utilizing Chainlink
MIT License
266 stars 99 forks source link

smartcontractkit/box-box doesn't exist. If you believe this is an error, please contact Truffle support. #114

Closed ghost closed 3 years ago

ghost commented 3 years ago

When trying to run truffle unbox smartcontractkit/box

I have the following error:

Starting unbox...
=================

✔ Preparing to download box
✖ Downloading
Unbox failed!
✖ Downloading
Unbox failed!
Error: Truffle Box at URL https://github.com:smartcontractkit/box-box doesn't exist. If you believe this is an error, please contact Truffle support.
    at /usr/lib/node_modules/truffle/build/webpack:/packages/box/dist/lib/utils/unbox.js:42:1
    at Generator.throw (<anonymous>)
    at rejected (/usr/lib/node_modules/truffle/build/webpack:/packages/box/dist/lib/utils/unbox.js:6:41)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Truffle v5.3.12 (core: 5.3.12)
Node v16.4.0

Node v16.4.0 Truffle v5.3.12

I was able to unbox other boxes such as react.

PatrickAlphaC commented 3 years ago

I'm able to reproduce this error. Thanks for making it.

PatrickAlphaC commented 3 years ago

We have created the issue here: https://github.com/trufflesuite/truffle/issues/4148

cds-amal commented 3 years ago

Apologies @PatrickAlphaC. There's a PR awaiting approval before we publish. In the mean time, a workaround is to use v5.3.10:

npx truffle@5.3.10 unbox smartcontractkit/box sc
PatrickAlphaC commented 3 years ago

Thank you @cds-amal. We have a lot of content showing people how to use the unboxing feature with the original API. Excited for this to go through.

cds-amal commented 3 years ago

@PatrickAlphaC https://github.com/trufflesuite/truffle/releases/tag/v5.3.13

ghost commented 3 years ago

Apologies @PatrickAlphaC. There's a PR awaiting approval before we publish. In the mean time, a workaround is to use v5.3.10:

npx truffle@5.3.10 unbox smartcontractkit/box sc

thanks for answering. I think maybe this method would work in a clean install, in my machine it got stuck when it tried to install the early version of truffle. waited a few hours and cancelled. I will try with a clean image and report back.

edit: I did not try uninstalling truffle first.

PatrickAlphaC commented 3 years ago

This has been fixed in https://github.com/trufflesuite/truffle/releases/tag/v5.3.13. Thanks for making this issue!