When i run "truffle migrate" i'm getting the following error:
var HelloWorld=artifacts.require(“HelloWorld”);
^
SyntaxError: Invalid or unexpected token
at new Script (vm.js:74:7)
at Object.createScript (vm.js:246:10)
I'm using a MacOs.
Any suggestions on why this problem is occuring?
I solved it. As The char “ is similar to ", i didn't see it was there so i had to replace it to the " char in order to work. So i replaced:
var HelloWorld=artifacts.require(“HelloWorld”);
with
var HelloWorld=artifacts.require("HelloWorld");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.