CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.71k stars 307 forks source link

Problem with missing dependencies #9

Closed hamogu closed 8 years ago

hamogu commented 8 years ago
melkor:/melkor/d1/guenther/projects/threejs/OBJ2GLTF> node bin/obj2gltf.js ../obj/test5.obj ../obj/test5.gltf

module.js:340
    throw err;
          ^
Error: Cannot find module 'Cesium'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/melkor/d1/guenther/projects/threejs/OBJ2GLTF/bin/obj2gltf.js:4:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

So, I tried to install Cesium, but that failed:

melkor:/melkor/d1/guenther/projects/threejs/OBJ2GLTF> npm install Cesium        
npm http GET https://registry.npmjs.org/Cesium
npm http 404 https://registry.npmjs.org/Cesium
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/lib/node_modules/npm/lib/cache.js:687:35)
npm ERR!     at /usr/lib/node_modules/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR!     at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.10.0-327.13.1.el7.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "Cesium"
npm ERR! cwd /melkor/d1/guenther/projects/threejs/OBJ2GLTF
npm ERR! node -v v0.10.42
npm ERR! npm -v 1.3.6
npm ERR! type non_object_property_load
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /melkor/d1/guenther/projects/threejs/OBJ2GLTF/npm-debug.log
npm ERR! not ok code 0
lasalvavida commented 8 years ago

Pretty sure it should be a lowercase 'cesium'; not sure how that slipped past.

hamogu commented 8 years ago

A module lower case cesium exists and I installed it. I'm not fluend in js (I mostly do python), so I'll have to leave it to you to fix that in the code.

lilleyse commented 8 years ago

This should be fixed now.

hamogu commented 8 years ago

It is but I have another issue that I'll report in a new issue.