I don’t know well node.js but i can handle this tutorial.
On this tutorial there are 3 steps that i need to do to run the ‘hello world’ example.
( i using windows 10 as the developing machine )
Install Node.js from their website, you can use the default install settings.
Open a command shell in the Cesium root directory and download/install the required modules by executing npm install. This will create a ‘node_modules’ directory in the root directory.
Finally, start your web server by executing node server.js in the root directory.
///*
So i did the step 1
And the step 2 => and i getting an exception
Error: Cannot find module ‘express’
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at C:\Cesium\server.js:5:19
at Object.<anonymous> (C:\Cesium\server.js:170:3)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
So, i wrote this command on the command windows:
C:\Cesium>npm install espress
and this work … but still getting the same exception when i writine :
בתאריך יום שבת, 30 ביולי 2016 בשעה 18:06:48 UTC+3, מאת yanshof:
Hello,
I just started to learn Cesium.
And i starting by reading and run the tutorial.
I don't know well node.js but i can handle this tutorial.
On this tutorial there are 3 steps that i need to do to run the 'hello world' example.
( i using windows 10 as the developing machine )
1. Install Node.js from their website, you can use the default install settings.
2. Open a command shell in the Cesium root directory and download/install the required modules by executing npm install. This will create a ‘node_modules’ directory in the root directory.
3. Finally, start your web server by executing node server.js in the root directory.
/*/*/*
So i did the step 1
And the step 2 => and i getting an exception
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at C:\Cesium\server.js:5:19
at Object.<anonymous> (C:\Cesium\server.js:170:3)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
So, i wrote this command on the command windows:
C:\Cesium>npm install espress
and this work ... but still getting the same exception when i writine :
C:\Cesium>node server.js
Any help please .
try the command - npm run build
then build the connection through - node server.js
for the last one you can use - npm start instead
this happend to me when i tried to install cesium through forking in github.
if you did so i suggest deleting this copy and download the .zip in the website