Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Browserify SyntaxError: Unexpected character '�' (2:2) "\build\Release\onig_scanner.node" #30

Open
Noah-Huppert opened this issue May 7, 2015 · 0 comments

Comments

@Noah-Huppert
Copy link

When I run browserify on any file that requires oniguruma I get the following error:

SyntaxError: Unexpected character '�' (2:2) while parsing C:\Users\noahh_000\Des
ktop\foo\node_modules\oniguruma\build\Release\onig_scanner.node while parsing fi
le: C:\Users\noahh_000\Desktop\foo\node_modules\oniguruma\build\Release\onig_sca
nner.node
    at Stream.end (c:\Users\noahh_000\AppData\Roaming\npm\node_modules\browserif
y\node_modules\insert-module-globals\index.js:73:21)
    at _end (c:\Users\noahh_000\AppData\Roaming\npm\node_modules\browserify\node
_modules\insert-module-globals\node_modules\through\index.js:65:9)
    at Stream.stream.end (c:\Users\noahh_000\AppData\Roaming\npm\node_modules\br
owserify\node_modules\insert-module-globals\node_modules\through\index.js:74:5)
    at Transform.onend (c:\Users\noahh_000\AppData\Roaming\npm\node_modules\brow
serify\node_modules\module-deps\node_modules\through2\node_modules\readable-stre
am\lib\_stream_readable.js:523:10)
    at Transform.g (events.js:199:16)
    at Transform.emit (events.js:129:20)
    at c:\Users\noahh_000\AppData\Roaming\npm\node_modules\browserify\node_modul
es\module-deps\node_modules\through2\node_modules\readable-stream\lib\_stream_re
adable.js:965:16
    at process._tickCallback (node.js:355:11)

So basically

Unexpected character '�' (2:2) "\build\Release\onig_scanner.node"

OS: Windows 8.1

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

No branches or pull requests

1 participant