SyntaxError: Unexpected token
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 2
Description
c:\nw\hello>node-pre-gyp build --runtime=node-webkit --target=0.14.7 --target_arch=ia32
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.36
node-pre-gyp info using node@5.12.0 | win32 | ia32
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack SyntaxError: Unexpected token :
node-pre-gyp ERR! stack at Object.parse (native)
node-pre-gyp ERR! stack at handle_gyp_opts (C:\Users\BisSoft-5-2\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\util\handle_gyp_opts.js:54:41)
node-pre-gyp ERR! stack at do_build (C:\Users\BisSoft-5-2\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\build.js:12:5)
node-pre-gyp ERR! stack at build (C:\Users\BisSoft-5-2\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\build.js:41:16)
node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) [as build] (C:\Users\BisSoft-5-2\AppData\Roaming\npm\node_modules\node-pre-gy
p\lib\node-pre-gyp.js:50:37)
node-pre-gyp ERR! stack at run (C:\Users\BisSoft-5-2\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp:79:30)
node-pre-gyp ERR! stack at Object. (C:\Users\BisSoft-5-2\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp:131:1)
node-pre-gyp ERR! stack at Module._compile (module.js:413:34)
node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:422:10)
node-pre-gyp ERR! stack at Module.load (module.js:357:32)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\BisSoft-5-2\AppData\Roaming\npm\node_modules\node-pre-gyp\bin
\node-pre-gyp" "build" "--runtime=node-webkit" "--target=0.14.7" "--target_arch=ia32"
node-pre-gyp ERR! cwd c:\nw\hello
node-pre-gyp ERR! node -v v5.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! This is a bug in node-pre-gyp.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! https://github.com/mapbox/node-pre-gyp/issues
so What should I do ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Windows command shown in the report, then inspect lib/util/handle_gyp_opts.js at the stack-trace location and the build entry points in lib/build.js. Trace the input that produces the SyntaxError and verify that the same node-webkit build command completes without the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100