Truffle on MacOs: Invalid or unexpected token
up vote
0
down vote
favorite
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?
macos ethereum truffle
add a comment |
up vote
0
down vote
favorite
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?
macos ethereum truffle
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
macos ethereum truffle
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?
macos ethereum truffle
macos ethereum truffle
edited Nov 11 at 1:19
D Manokhin
45114
45114
asked Nov 10 at 18:00
Haiaty Varotto
63
63
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
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");
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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");
add a comment |
up vote
0
down vote
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");
add a comment |
up vote
0
down vote
up vote
0
down vote
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");
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");
answered Nov 10 at 18:10
Haiaty Varotto
63
63
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53241880%2ftruffle-on-macos-invalid-or-unexpected-token%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown