CesiumGS / obj2gltf

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

Buffer.alloc is not a function #88

Closed rodebiet closed 7 years ago

rodebiet commented 7 years ago

$ npm run test

obj2gltf@1.1.1 test /disk/src/3d/obj2gltf gulp test

[14:45:34] Using gulpfile /disk/src/3d/obj2gltf/gulpfile.js [14:45:34] Starting 'test'... Started Jasmine started F createGltf ✗ simple gltf

mramato commented 7 years ago

@rodebiet it looks like you may be using a very old version of Node. obj2gltf requires a recent version of Node 4.x, 6.x, 8.x, all of which contain the Buffer.alloc function.

rodebiet commented 7 years ago

$ node --version v4.2.6

mramato commented 7 years ago

Yes, that version does not have the required functionality. (It also has known security issues). You need to be running at least 4.5.0, but I highly recommend you switch to the latest 6.x, as 4.x will no longer be maintained by the Node Foundation starting in October.

rodebiet commented 7 years ago

$ node --version v6.11.0

it now works, this issue can be closed.

mramato, thank you very much for your very fast support!