I did the installation of https://smartpy.io/docs/cli/ (including python,node and the cli version 0.8.3-1) both in ubuntu (windows subsystem) and in Windows 10 and every time I try to run compile or test (using any of the templates like https://smartpy.io/ide?template=storeValue.py) I'm getting always the message:

unhandledRejection {}

Has anyone had the same problem?

  • i had the same problem - try cding into ~/smartpy-cli and running npm install @smartpy/timelock
    – damian
    Commented Oct 25, 2021 at 18:11
  • I'm having the same issue on Windows when running Ubuntu via WSL 2.0. Using SmartPy Version: 0.8.5
    – JJJ
    Commented Dec 18, 2021 at 18:54

3 Answers 3


I had the same issue and it was fixed as soon as I updated Node to the newer LTS version 16.13.1

# download latest nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# after installing restart shell or add export variables for nvm to work

# then install the newer node version
nvm install 16.13.1
  • This fix worked for me using WSL2 on Windows 10. Commented Mar 8, 2022 at 20:58

it worked with me finalllly, am using WSL2 on windows 11 ... the script is very restricted in terms where you put the files ...even if you are at the smartpy-cli folder you still need to write the full command as follow:

~/smartpy-cli/SmartPy.sh test ~/smartpy-cli/contracts/play.py ~/smartpy-cli/test

you have to create the "contracts" and "test" folders and copy your python files in "contracts"

  • This was it for me. The older version used to not care.
    – sudo
    Commented Apr 11, 2022 at 8:34

This has been fixed on Saturday, you just need to update the CLI by running this:

sh <(curl -s https://smartpy.io/cli/install.sh)

Ignore my previous message (I just read your message properly), SmartPy CLI doesn't work on windows without using a container or WSL.

  • I'm having the same issue on WSL, just FYI.
    – JJJ
    Commented Dec 18, 2021 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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