Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm module hoek - line 148 - SyntaxError: Unexpected identifier #2665

Open
melwynt opened this issue Aug 23, 2017 · 0 comments
Open

npm module hoek - line 148 - SyntaxError: Unexpected identifier #2665

melwynt opened this issue Aug 23, 2017 · 0 comments

Comments

@melwynt
Copy link

melwynt commented Aug 23, 2017

Hi,

When executing this first command in the Learn IDE:
learn test

This error came up:

/home/melwyn-122593/code/labs/javascript-intro-to-functions-lab-bootcamp-prep-000/node_modules/hoek/lib/index.js:148
exports.applyToDefaults = function (defaults, options, isNullOverride)  row[3] + ' (' + row[0] + ':' + row[1] + ':' + r
ow[2] + ')');
                                                                        ^^^
SyntaxError: Unexpected identifier

hoek

To get rid of this issue, I modified line 148 of file "./node_modules/hoek/lib/index.js:148".

Open the file with vi:
vi ./node_modules/hoek/lib/index.js

I replaced this part:

exports.applyToDefaults = function (defaults, options, isNullOverride)  row[3] ++
 ' (' + row[0] + ':' + row[1] + ':' + row[2] + ')');
    }
    return display;
};

With this:

exports.applyToDefaults = function (defaults, options, isNullOverride) {
 var display = row[3] + ' (' + row[0] + ':' + row[1] + ':' + row[2] + ')';
 return display;
};

I hope that will help someone with the same issue.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant