Unexpected Token ILLEGAL

(function (exports, require, module, __filename, __dirname) { /*!

SyntaxError: Unexpected token ILLEGAL
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/zphinx/Cesium/node_modules/request/node_modules/tough-cookie/lib/cookie.js:35:13)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

I was having trouble with the BING API and reinstalled Cesium. This time however I ran into a lot of errors when trying to run node server.js. After npm installing many modules I finally reached a deadend with the above error. Any advice?


You shouldn’t need to make any changes to Cesium to fix the Bing API maps. See the response in this forum post: https://groups.google.com/d/msg/cesium-dev/UlB56Yn1WII/rq4MEzX5AwAJ

Once you have your key, you just need to add this line of code to your application: Cesium.BingMapsApi.defaultKey = ‘my new key’;