0

enter image description here

First of all i can´t execute truffle writing truffle console. Instead of that I have to write truffle.cmd console. When im in the truffle console and I try to execute test over my contracts I get syntax error over test. I can´t solve this issue because in truffle docu the way toexecute test is that way.

Any help??

1

When you're in the truffle console you shouldn't use the truffle keyword anymore - all commands go to truffle directly.

The problem with executing truffle in Windows is a known one and looks like it hasn't been fixed yet (Truffle -- Microsoft JScript runtime error). Just use truffle.cmd instead of truffle and all will work just fine.

  • Thx for the clear answer. I hope will help more people in future – UnexpectedCharacter Nov 20 '18 at 8:42
0

I solve the issue writing only test. Without truffle in the command line

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.