Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old node version: TypeError: Object m has no method 'writeUIntBE' #1

Closed
ivanistheone opened this issue Jul 7, 2015 · 8 comments
Closed

Comments

@ivanistheone
Copy link

I got one of these

initializing writer
writing image
writing head
TypeError: Object m has no method 'writeUIntBE'
    at GIFWriter.writeBE (/usr/local/lib/node_modules/ttystudio/lib/gif.js:97:7)
    at GIFWriter.writeHead (/usr/local/lib/node_modules/ttystudio/lib/gif.js:134:12)
    at GIFWriter.write (/usr/local/lib/node_modules/ttystudio/lib/gif.js:51:8)
    at SGRWriter.write (/usr/local/lib/node_modules/ttystudio/lib/writer.js:53:22)
    at compile (/usr/local/lib/node_modules/ttystudio/bin/ttystudio:61:10)
    at /usr/local/lib/node_modules/ttystudio/bin/ttystudio:93:12
    at Screen.done (/usr/local/lib/node_modules/ttystudio/lib/record.js:92:7)
    at Screen.EventEmitter._emit (/usr/local/lib/node_modules/ttystudio/node_modules/blessed/lib/events.js:90:20)
    at Screen.EventEmitter.emit (/usr/local/lib/node_modules/ttystudio/node_modules/blessed/lib/events.js:107:17)
    at Program.<anonymous> (/usr/local/lib/node_modules/ttystudio/node_modules/blessed/lib/widgets/screen.js:480:12)
probook:TelcareOperations ivan$ vim /usr/local/lib/node_modules/ttystudio/lib/gif.js

when node -v === v0.10.35 but then upgrading to v0.12.4 and some npm uninstall and reinstall stuff later it works now. Awesome app, BTW.

@chjj
Copy link
Owner

chjj commented Jul 7, 2015

Yeah, I used to write to buffers the old-fashioned way (with indexing + shifts and ors). I was too used to the first iteration of buffers in node v0.3. With this project I just decided to use the new school API finally. I suppose we could include a shim for older versions of node since it would be a headache to rewrite the GIF and APNG compilers.

@rktjmp
Copy link

rktjmp commented Jul 7, 2015

I got the same issue on v0.10.28. Might be worth mentioning the required node version in the Readme.

@molekilla
Copy link

Fails with 0.10.39

@SPxiaomin-zz
Copy link

excuse me , when i upgrade my node, i failed , i donnot know what the reason is
i run this command on ubuntu 14.04 sudo n 0.12.4
help me .........
thanks.

@chjj chjj closed this as completed in 909da8c Jul 8, 2015
@chjj
Copy link
Owner

chjj commented Jul 8, 2015

Should be fixed for v0.10.x.

@HParker
Copy link

HParker commented Jul 20, 2015

Is this released to npm? I am still seeing this error on my system (osx). Fairly sure I have the latest version. Though ttystudio doesn't understand --version.

@chjj
Copy link
Owner

chjj commented Jul 21, 2015

@HParker, yes. It's released to npm.

$ ttystudio --version
v0.0.11

writeUIntBE no longer appears in the code at all:

$ find . -name '*.js' -print0 | xargs -0 grep writeUIntBE
$

@HParker
Copy link

HParker commented Jul 22, 2015

Sounds like I have some system issues I need to resolve. Thank you for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants