Cannot deploy Simple777Token contract with Truffle migrate on Windows

Hi there,

I try to migrate Simple777Token from and it fails with an error:

Error:  *** Deployment Failed ***
"Simple777Token" hit a require or revert statement somewhere in its constructor. Try:
   * Verifying that your constructor params satisfy all require conditions.
   * Adding reason strings to your require statements.
    at C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\deployer\src\deployment.js:364:1
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at Migration._deploy (C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:68:1)
    at Migration._load (C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:55:1)
    at (C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:171:1)
    at Object.runMigrations (C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
    at Object.runFrom (C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
    at (C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:87:1)
    at runMigrations (C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:269:1)
    at C:\Users\pavel\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:231:1

My truffle version is:

Truffle v5.1.47 (core: 5.1.47)
Solidity v0.5.16 (solc-js)
Node v13.10.1
Web3.js v1.2.1

I do change nothing in the example contract.
Could you please help me with?

1 Like

Hi @pgrazhdankin,

Welcome to the community :wave:

I am sorry that you are having an issue deploying an ERC777 token.

I recommend changing your node version to node 10 or node 12. npm install failed when I used node 13.

Assuming you are using Windows I suggest looking at using Windows Subsystem for Linux (WSL). I use WSL2 on Windows 10: Solidity Smart Contract development on Windows

I was able to run the following (with ganache-cli running in another terminal) on node 10:

$ git clone
$ cd Simple777Token
$ npm install
$ npx truffle migrate

Thanks a lot, @abcoathup, on WSL it works like a charm. :+1:

1 Like

Hi @pgrazhdankin,

Great to hear. I have been using WSL for two years now and haven’t looked back.

If you have a moment it would be great if you could introduce yourself to the community.