TypeError: Object Variable has no method 'codePointAt'
bluurn opened this issue · 13 comments
Hello, just installed bash-handbook@1.2.2 and run into the following issue when tried to run bash-handbook
:
/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:312
var code = str.codePointAt(i);
^
TypeError: Object Variable has no method 'codePointAt'
at getStringWidth (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:312:24)
at /usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:33:21
at Array.forEach (native)
at forEach (/usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:73:31)
at /usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:32:9
at Array.reduce (native)
at reduce (/usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:63:30)
at module.exports (/usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:31:17)
at tableFormat (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:294:12)
at processToken (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:188:23)
Please let me know how can I resolve this issue.
Thank you.
Can't reproduce this bug. Seems like it's a trouble with msee.
I have reported and issue to msee#32.
Hi @bluurn Can you try again? It should be solved now.
Hi, I ran into the same issue (with the same error message as above) today after installing bash-handbook
. Moreover, I'm unable to type anything to the terminal afterwards.
I'm running npm 1.3.6
.
Thanks in advance for looking at it again.
I am on the bleeding edge at 3.7
, but anything before 1.4
and we are talking like almost 2 years ago. Any reason you don't want to upgrade your npm
?
Apologies, I don't use npm
very often and didn't realize I was that far in the past with that version.
I upgraded to 3.6.0
, however, the issue still persists:
/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:312
var code = str.codePointAt(i);
^
TypeError: Object Variable has no method 'codePointAt'
at getStringWidth (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:312:24)
at /usr/lib/node_modules/bash-handbook/node_modules/text-table/index.js:33:21
at Array.forEach (native)
at forEach (/usr/lib/node_modules/bash-handbook/node_modules/text-table/index.js:73:31)
at /usr/lib/node_modules/bash-handbook/node_modules/text-table/index.js:32:9
at Array.reduce (native)
at reduce (/usr/lib/node_modules/bash-handbook/node_modules/text-table/index.js:63:30)
at module.exports (/usr/lib/node_modules/bash-handbook/node_modules/text-table/index.js:31:17)
at tableFormat (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:294:12)
at processToken (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:188:23)
@TerkaSlan Sorry for the trouble! Then, the problem is msee
's new version still hasn't been published.
/cc @martinheidegger or @firede
Published 0.4.0 - please review :)
— firede/msee#32 (comment)
@TerkaSlan @bluurn check it out.
I uninstalled bash-handbook
and installed it again, installed msee
, no change for me, I'm still getting the same error.
Just found the problem.
I have used system nodejs v0.10.37, when I tried to use v5.5.0, this issue dissappeared.
@TerkaSlan please check it.
@bluurn just for future: always use the latest stable release on your machines. LTS releases are for production environment.
Thanks @bluurn , I previously had nodejs v0.10.36
, I updated to v5.5.0
and everything works perfectly, the issue is gone.
Awesome! I'm gonna close this issue.