[GH-ISSUE #82] SyntaxError: Unexpected token ILLEGAL when running gulp #55

Closed
opened 2026-02-26 02:31:57 +03:00 by kerem · 6 comments
Owner

Originally created by @kafeinnet on GitHub (Dec 16, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/82

Hi,

Just tried to install koel and it fail when running gulp.

I tried to clean the npm cache, then I ran bower install and gulp --production. It seems gulp is not supporting utf-8 characters.

Here is the error :

fab@sylvaner:~/koel$ ./node_modules/.bin/gulp --production    
/home/fab/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/syntax-error/node_modules/acorn/dist/acorn.js:1609
var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ

SyntaxError: Unexpected token ILLEGAL
    at exports.runInThisContext (vm.js:54:16)
    at Module._compile (module.js:375:25)
    at Object.Module._extensions..js (module.js:406:10)
    at Module.load (module.js:345:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:355:17)
    at require (internal/module.js:13:17)
    at Object.<anonymous> (/home/fab/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/syntax-error/index.js:1:14)
    at Module._compile (module.js:399:26)
    at Object.Module._extensions..js (module.js:406:10)

\fab

Originally created by @kafeinnet on GitHub (Dec 16, 2015). Original GitHub issue: https://github.com/koel/koel/issues/82 Hi, Just tried to install koel and it fail when running gulp. I tried to clean the npm cache, then I ran bower install and gulp --production. It seems gulp is not supporting utf-8 characters. Here is the error : ``` fab@sylvaner:~/koel$ ./node_modules/.bin/gulp --production /home/fab/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/syntax-error/node_modules/acorn/dist/acorn.js:1609 var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ SyntaxError: Unexpected token ILLEGAL at exports.runInThisContext (vm.js:54:16) at Module._compile (module.js:375:25) at Object.Module._extensions..js (module.js:406:10) at Module.load (module.js:345:32) at Function.Module._load (module.js:302:12) at Module.require (module.js:355:17) at require (internal/module.js:13:17) at Object.<anonymous> (/home/fab/koel/node_modules/laravel-elixir/node_modules/browserify/node_modules/syntax-error/index.js:1:14) at Module._compile (module.js:399:26) at Object.Module._extensions..js (module.js:406:10) ``` \fab
kerem closed this issue 2026-02-26 02:31:57 +03:00
Author
Owner

@NamPNQ commented on GitHub (Dec 17, 2015):

try upgrade to nodejs 5x

<!-- gh-comment-id:165326040 --> @NamPNQ commented on GitHub (Dec 17, 2015): try upgrade to nodejs 5x
Author
Owner

@kafeinnet commented on GitHub (Dec 17, 2015):

I'm already using nodejs 5.x

fab@sylvaner:~/koel$ nodejs -v
v5.2.0
fab@sylvaner:~/koel$ ./node_modules/.bin/gulp -v
[08:32:23] CLI version 3.9.0
[08:32:23] Local version 3.9.0
<!-- gh-comment-id:165383476 --> @kafeinnet commented on GitHub (Dec 17, 2015): I'm already using nodejs 5.x ``` fab@sylvaner:~/koel$ nodejs -v v5.2.0 fab@sylvaner:~/koel$ ./node_modules/.bin/gulp -v [08:32:23] CLI version 3.9.0 [08:32:23] Local version 3.9.0 ```
Author
Owner

@NamPNQ commented on GitHub (Dec 17, 2015):

Try replace acorn.js with: http://filepi.com/i/cql9qXP

<!-- gh-comment-id:165387101 --> @NamPNQ commented on GitHub (Dec 17, 2015): Try replace `acorn.js` with: http://filepi.com/i/cql9qXP
Author
Owner

@kafeinnet commented on GitHub (Dec 17, 2015):

OK, I don's know why but most of the JS files in node_modules/laravel-elixir/node_modules/browserify/node_modules where truncated. I did a clean install and everything is OK now.

Thx and sorry for the inconvenience !

<!-- gh-comment-id:165395962 --> @kafeinnet commented on GitHub (Dec 17, 2015): OK, I don's know why but most of the JS files in node_modules/laravel-elixir/node_modules/browserify/node_modules where truncated. I did a clean install and everything is OK now. Thx and sorry for the inconvenience !
Author
Owner

@dalenguyen commented on GitHub (Feb 27, 2017):

In my case, I had to add "use strict"; to the top of js file in order to get it to work.

<!-- gh-comment-id:282859135 --> @dalenguyen commented on GitHub (Feb 27, 2017): In my case, I had to add **_"use strict";_** to the top of js file in order to get it to work.
Author
Owner

@phanan commented on GitHub (Feb 28, 2017):

Your node/npm version appears to be too low, then.

On Tuesday, February 28, 2017, Dale Nguyen notifications@github.com wrote:

In my case, I had to add "use strict"; to the top of js file in order
to get it to work.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/phanan/koel/issues/82#issuecomment-282859135, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHrt0lXqdi4TzW7f_OJJp8hsHudeCzeMks5rgz9vgaJpZM4G20GX
.

<!-- gh-comment-id:282906801 --> @phanan commented on GitHub (Feb 28, 2017): Your node/npm version appears to be too low, then. On Tuesday, February 28, 2017, Dale Nguyen <notifications@github.com> wrote: > In my case, I had to add *"use strict";* to the top of js file in order > to get it to work. > > — > You are receiving this because you modified the open/close state. > Reply to this email directly, view it on GitHub > <https://github.com/phanan/koel/issues/82#issuecomment-282859135>, or mute > the thread > <https://github.com/notifications/unsubscribe-auth/AHrt0lXqdi4TzW7f_OJJp8hsHudeCzeMks5rgz9vgaJpZM4G20GX> > . >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#55
No description provided.