-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
NodeJS: SyntaxError: Unexpected identifier #50
Comments
Hi, can you provide more detailed error message? Also i will very happy if you send me small project with example of current problem, it help me to reproduce the error. |
Hi, Find attached the part that fails. Just rename the 'pdf' to 'zip' :-) - it does not accept ZIP file :( - and unpack it, do 'npm install' + 'grunt' to get the syntax error. Thanks! |
Tnx, i'll look at this right now |
How i can build dist files? grunt task |
It's a bug! |
I'll fix it soon as possible (today) |
|
Since the |
Can you update it? |
Updated to a new version |
Thank you! |
You're welcome. I should've followed the same version number you use on your package. Would've been much easier to understand. |
Hi,all
I just download the 0.9.3 file, and npm install grunt-contrib-obfuscator, then try to install the new version with “npm install --save-dev javascript-obfuscator”, but got the following errors:
and the attached file is the npm-debug log, can anyone help to check it.
Many thanks!
发件人: <bounces+848413-93a5-qingweily=126.com@sgmail.github.com> 代表 Tiago Serafim <notifications@github.com>
答复: javascript-obfuscator/javascript-obfuscator <reply@reply.github.com>
日期: 2017年5月3日 星期三 上午3:59
至: javascript-obfuscator/javascript-obfuscator <javascript-obfuscator@noreply.github.com>
抄送: Subscribed <subscribed@noreply.github.com>
主题: Re: [javascript-obfuscator/javascript-obfuscator] NodeJS: SyntaxError: Unexpected identifier (#50)
Updated to a new version grunt-contrib-obfuscator@3.0.0.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
hi, all
Just rename the name part of the package.json file with new name and it’s done.
Many thanks!
… 在 2017年5月3日,上午9:37,LIU YONG ***@***.***> 写道:
Hi,all
I just download the 0.9.3 file, and npm install grunt-contrib-obfuscator, then try to install the new version with “npm install --save-dev javascript-obfuscator”, but got the following errors:
<image001.png>
and the attached file is the npm-debug log, can anyone help to check it.
Many thanks!
发件人: ***@***.*** ***@***.***>> 代表 Tiago Serafim ***@***.*** ***@***.***>>
答复: javascript-obfuscator/javascript-obfuscator ***@***.*** ***@***.***>>
日期: 2017年5月3日 星期三 上午3:59
至: javascript-obfuscator/javascript-obfuscator ***@***.*** ***@***.***>>
抄送: Subscribed ***@***.***>
主题: Re: [javascript-obfuscator/javascript-obfuscator] NodeJS: SyntaxError: Unexpected identifier (#50)
Updated to a new version ***@***.***
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#50 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ATId-edtmJZMAEjOxwcyQ_FxXgb9Q2TJks5r14szgaJpZM4NMEu4>.
邮件带有附件预览链接,若您转发或回复此邮件时不希望对方预览附件,建议您手动删除链接。
共有 2 个附件
npm-debug.log(5K)
极速下载 <http://preview.mail.126.com/xdownload?filename=npm-debug.log&mid=1tbipA7MdVWfqAIIXgAAsl&part=3&sign=03082545f667f930280c25b9f64737b0&time=1493775872&uid=qingweily%40126.com>
image001.png(85K)
极速下载 <http://preview.mail.126.com/xdownload?filename=image001.png&mid=1tbipA7MdVWfqAIIXgAAsl&part=4&sign=03082545f667f930280c25b9f64737b0&time=1493775872&uid=qingweily%40126.com> 在线预览 <http://preview.mail.126.com/preview?mid=1tbipA7MdVWfqAIIXgAAsl&part=4&sign=03082545f667f930280c25b9f64737b0&time=1493775872&uid=qingweily%40126.com><npm-debug.log><image001.png>
|
it seems there is no server.js after the installation, how can I start the local server ?
Many thanks!
… 在 2017年5月3日,上午10:34,LIU YONG ***@***.***> 写道:
hi, all
Just rename the name part of the package.json file with new name and it’s done.
<PastedGraphic-1.png>
Many thanks!
> 在 2017年5月3日,上午9:37,LIU YONG ***@***.*** ***@***.***>> 写道:
>
> Hi,all
>
> I just download the 0.9.3 file, and npm install grunt-contrib-obfuscator, then try to install the new version with “npm install --save-dev javascript-obfuscator”, but got the following errors:
>
> <image001.png>
>
> and the attached file is the npm-debug log, can anyone help to check it.
>
> Many thanks!
>
>
>
> 发件人: ***@***.*** ***@***.***>> 代表 Tiago Serafim ***@***.*** ***@***.***>>
> 答复: javascript-obfuscator/javascript-obfuscator ***@***.*** ***@***.***>>
> 日期: 2017年5月3日 星期三 上午3:59
> 至: javascript-obfuscator/javascript-obfuscator ***@***.*** ***@***.***>>
> 抄送: Subscribed ***@***.*** ***@***.***>>
> 主题: Re: [javascript-obfuscator/javascript-obfuscator] NodeJS: SyntaxError: Unexpected identifier (#50)
>
> Updated to a new version ***@***.***
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub <#50 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ATId-edtmJZMAEjOxwcyQ_FxXgb9Q2TJks5r14szgaJpZM4NMEu4>.
>
> 邮件带有附件预览链接,若您转发或回复此邮件时不希望对方预览附件,建议您手动删除链接。
> 共有 2 个附件
> npm-debug.log(5K)
> 极速下载 <http://preview.mail.126.com/xdownload?filename=npm-debug.log&mid=1tbipA7MdVWfqAIIXgAAsl&part=3&sign=03082545f667f930280c25b9f64737b0&time=1493775872&uid=qingweily%40126.com>
> image001.png(85K)
> 极速下载 <http://preview.mail.126.com/xdownload?filename=image001.png&mid=1tbipA7MdVWfqAIIXgAAsl&part=4&sign=03082545f667f930280c25b9f64737b0&time=1493775872&uid=qingweily%40126.com> 在线预览 <http://preview.mail.126.com/preview?mid=1tbipA7MdVWfqAIIXgAAsl&part=4&sign=03082545f667f930280c25b9f64737b0&time=1493775872&uid=qingweily%40126.com><npm-debug.log><image001.png>
|
Hmm, @qingweiqm, i slightly don't understand context of last three messages, can you describe it? |
The third message is meaningless. Pls ignore. My fault.
The first message is when using npm install the new version, there is an error, just fixed with the second message mentioned.
And do I just modify the package.json on javascript-obfuscator-ui to get the 0.10.0-beta2 version ?
Regards!
发件人: <bounces+848413-93a5-qingweily=126.com@sgmail.github.com> 代表 Timofey Kachalov <notifications@github.com>
答复: javascript-obfuscator/javascript-obfuscator <reply@reply.github.com>
日期: 2017年5月3日 星期三 下午1:58
至: javascript-obfuscator/javascript-obfuscator <javascript-obfuscator@noreply.github.com>
抄送: qingweiqm <qingweily@126.com>, Mention <mention@noreply.github.com>
主题: Re: [javascript-obfuscator/javascript-obfuscator] NodeJS: SyntaxError: Unexpected identifier (#50)
Hmm, @qingweiqm, i slightly don't understand context of last three messages, can you describe it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I don't see any attached files, can you paste it here manually? |
pls see below:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save-dev',
1 verbose cli 'javascript-obfuscator' ]
2 info using npm@3.10.10
3 info using node@v6.9.4
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData javascript-obfuscator
8 silly fetchNamedPackageData javascript-obfuscator
9 silly mapToRegistry name javascript-obfuscator
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'javascript-obfuscator',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'javascript-obfuscator',
12 silly mapToRegistry name: 'javascript-obfuscator',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/javascript-obfuscator
14 verbose request uri https://registry.npmjs.org/javascript-obfuscator
15 verbose request no auth needed
16 info attempt registry request try #1 at 09:28:58
17 verbose request id 0af208d7bec7f3af
18 verbose etag W/"5908df5b-29484"
19 verbose lastModified Tue, 02 May 2017 19:34:51 GMT
20 http request GET https://registry.npmjs.org/javascript-obfuscator
21 http 304 https://registry.npmjs.org/javascript-obfuscator
22 verbose headers { date: 'Wed, 03 May 2017 01:29:00 GMT',
22 verbose headers via: '1.1 varnish',
22 verbose headers 'cache-control': 'max-age=300',
22 verbose headers etag: 'W/"5908df5b-29484"',
22 verbose headers age: '149',
22 verbose headers connection: 'keep-alive',
22 verbose headers 'x-served-by': 'cache-hkg6823-HKG',
22 verbose headers 'x-cache': 'HIT',
22 verbose headers 'x-cache-hits': '1',
22 verbose headers 'x-timer': 'S1493774940.087939,VS0,VE0',
22 verbose headers vary: 'Accept-Encoding' }
23 silly get cb [ 304,
23 silly get { date: 'Wed, 03 May 2017 01:29:00 GMT',
23 silly get via: '1.1 varnish',
23 silly get 'cache-control': 'max-age=300',
23 silly get etag: 'W/"5908df5b-29484"',
23 silly get age: '149',
23 silly get connection: 'keep-alive',
23 silly get 'x-served-by': 'cache-hkg6823-HKG',
23 silly get 'x-cache': 'HIT',
23 silly get 'x-cache-hits': '1',
23 silly get 'x-timer': 'S1493774940.087939,VS0,VE0',
23 silly get vary: 'Accept-Encoding' } ]
24 verbose etag https://registry.npmjs.org/javascript-obfuscator from cache
25 verbose get saving javascript-obfuscator to /Users/liuyong/.npm/registry.npmjs.org/javascript-obfuscator/.cache.json
26 verbose correctMkdir /Users/liuyong/.npm correctMkdir not in flight; initializing
27 silly install normalizeTree
28 silly loadCurrentTree Finishing
29 silly loadIdealTree Starting
30 silly install loadIdealTree
31 silly cloneCurrentTree Starting
32 silly install cloneCurrentTreeToIdealTree
33 silly cloneCurrentTree Finishing
34 silly loadShrinkwrap Starting
35 silly install loadShrinkwrap
36 silly loadShrinkwrap Finishing
37 silly loadAllDepsIntoIdealTree Starting
38 silly install loadAllDepsIntoIdealTree
39 silly rollbackFailedOptional Starting
40 silly rollbackFailedOptional Finishing
41 silly runTopLevelLifecycles Finishing
42 silly install printInstalled
43 verbose stack Error: Refusing to install javascript-obfuscator as a dependency of itself
43 verbose stack at checkSelf (/usr/local/lib/node_modules/npm/lib/install/validate-args.js:53:14)
43 verbose stack at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
43 verbose stack at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
43 verbose stack at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
43 verbose stack at /usr/local/lib/node_modules/npm/lib/install/validate-args.js:16:5
43 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
43 verbose stack at Array.forEach (native)
43 verbose stack at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
43 verbose stack at Array.forEach (native)
43 verbose stack at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
44 verbose cwd /Users/liuyong/Documents/personal/personal enterprise/product&Road map/shadow_transformer-0.9.3
45 error Darwin 15.6.0
46 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save-dev" "javascript-obfuscator"
47 error node v6.9.4
48 error npm v3.10.10
49 error code ENOSELF
50 error Refusing to install javascript-obfuscator as a dependency of itself
51 error If you need help, you may report this error at:
51 error <https://github.com/npm/npm/issues>
52 verbose exit [ 1, true ]
regards!
… 在 2017年5月3日,下午2:08,Timofey Kachalov ***@***.***> 写道:
I don't see any attached files, can you paste it here manually?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#50 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ATId-c97LFB5p9WksZE1V-xZ2IYtS_wcks5r2BnZgaJpZM4NMEu4>.
|
if you want to use new version of |
Got it. Thanks!
发件人: <bounces+848413-93a5-qingweily=126.com@sgmail.github.com> 代表 Timofey Kachalov <notifications@github.com>
答复: javascript-obfuscator/javascript-obfuscator <reply@reply.github.com>
日期: 2017年5月3日 星期三 下午2:20
至: javascript-obfuscator/javascript-obfuscator <javascript-obfuscator@noreply.github.com>
抄送: qingweiqm <qingweily@126.com>, Mention <mention@noreply.github.com>
主题: Re: [javascript-obfuscator/javascript-obfuscator] NodeJS: SyntaxError: Unexpected identifier (#50)
if you want to use new version of javascript-obfuscator with grunt-contrib-obfuscator, you should just update grunt-contrib-obfuscator to 3.0.0 version, javascript-obfuscator will install automatically
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi, Cheers, |
You don't need Or you can type After that check your |
|
I did as you advised and checked the version, updated but still same compil issue since the beginning: SyntaxError: Unexpected token: name (ChargingStationClient) |
hmm, i'll look into this in a few days |
And ? :-) |
I will look, but not now and not today =( Sorry, but today i haven't time for programming =( |
No problem :-) |
I obfuscated both |
Can you provide another example? In previous example grunt task didn't work at first, i edited |
ping |
pong :) Sorry I'm on holiday and I'm going back soon. I'll provide you another example. Cheers! |
Ok |
ping :) |
ping |
Closed due to inactivity. Please, create new ticket if necessary. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I obfuscated my whole NodeJS project with you Grunt task and when I want to run it I got this syntax error.
I tried several other options (medium obfuscation, optimal performance...) without success.
I search a solution but found nothing.
Any clue?
Thanks,
Serge.
The text was updated successfully, but these errors were encountered: