Unable to install Cesium module


(Praveen Shilavantar) #1

Planning to create a plugin for Cesium library (http://cesiumjs.org/index.html). Getting below error while starting Kibana..

$ npm install
cesium@1.18.0 node_modules/cesium
└── requirejs@2.1.22

$ npm start

ERROR in ./~/cesium/~/requirejs/bin/r.js
Module parse failed: /home/praveen/development/kibana4-dev/kibana/node_modules/cesium/node_modules/requirejs/bin/r.js Line 1: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
| #!/usr/bin/env node
| /**
| * @license r.js 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
@ ./~/cesium/index.js 5:16-36

ERROR in ./~/cesium/Source/Workers/createGeometry.js
Module not found: Error: Cannot resolve module 'Workers' in /home/praveen/development/kibana4-dev/kibana/node_modules/cesium/Source/Workers
@ ./~/cesium/Source/Workers/createGeometry.js 23:47-79

ERROR in ./~/cesium/Build/Cesium/Workers/createGeometry.js
Module not found: Error: Cannot resolve module 'Workers' in /home/praveen/development/kibana4-dev/kibana/node_modules/cesium/Build/Cesium/Workers
@ ./~/cesium/Build/Cesium/Workers/createGeometry.js 77:21106-21121

ERROR in ./~/cesium/Build/CesiumUnminified/Workers/createGeometry.js
Module not found: Error: Cannot resolve module 'Workers' in /home/praveen/development/kibana4-dev/kibana/node_modules/cesium/Build/CesiumUnminified/Workers
@ ./~/cesium/Build/CesiumUnminified/Workers/createGeometry.js 22681:47-79

at Object.exports.create (/home/praveen/development/kibana4-dev/kibana/node_modules/boom/lib/index.js:21:17)
at LazyOptimizer.failedStatsToError (/home/praveen/development/kibana4-dev/kibana/src/optimize/BaseOptimizer.js:167:17)
at Compiler. (/home/praveen/development/kibana4-dev/kibana/src/optimize/lazy/LazyOptimizer.js:44:22)
at Compiler.applyPlugins (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/node_modules/tapable/lib/Tapable.js:26:37)
at Watching._done (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/Compiler.js:78:17)
at Watching. (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/Compiler.js:51:17)
at /home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/Compiler.js:403:12
at Compiler.next (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/node_modules/tapable/lib/Tapable.js:67:11)
at Compiler. (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/CachePlugin.js:40:4)
at Compiler.applyPluginsAsync (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/node_modules/tapable/lib/Tapable.js:71:13)
at Compiler. (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/Compiler.js:400:9)
at Compilation. (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/Compilation.js:576:13)
at Compilation.applyPluginsAsync (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)
at Compilation. (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/Compilation.js:571:10)
at Compilation.applyPluginsAsync (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)
at Compilation. (/home/praveen/development/kibana4-dev/kibana/node_modules/webpack/lib/Compilation.js:566


(system) #2