yo icon indicating copy to clipboard operation
yo copied to clipboard

TabTab Error

Open drosskopf opened this issue 7 years ago • 7 comments

Getting error when running yomen. On fresh copy of windows 10.

C:\Users\drosskopf
λ npm install yo -g
C:\Users\drosskopf\AppData\Roaming\npm\yo -> C:\Users\drosskopf\AppData\Roaming\npm\node_modules\yo\lib\cli.js
C:\Users\drosskopf\AppData\Roaming\npm\yo-complete -> C:\Users\drosskopf\AppData\Roaming\npm\node_modules\yo\lib\completion\index.js

> [email protected] postinstall C:\Users\drosskopf\AppData\Roaming\npm\node_modules\yo\node_modules\spawn-sync
> node postinstall


> [email protected] postinstall C:\Users\drosskopf\AppData\Roaming\npm\node_modules\yo
> yodoctor


Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ Node.js version
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
√ npm version

Everything looks all right!

C:\Users\drosskopf
λ npm --version
3.10.8
Getting Error ('tabtab').Commands.default is not a constructor.  
C:\Users\drosskopf
λ node --version
v6.9.1

C:\Users\drosskopf
λ yo
C:\Users\drosskopf\AppData\Roaming\npm\node_modules\yo\lib\cli.js:18
var tabtab = new (require('tabtab').Commands.default)({
             ^

TypeError: require(...).Commands.default is not a constructor
    at Object.<anonymous> (C:\Users\drosskopf\AppData\Roaming\npm\node_modules\yo\lib\cli.js:18:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

drosskopf avatar Nov 23 '16 20:11 drosskopf

Hej @mklabs, hope it’s okay to ping you directly 😘

Do you have any idea about that issue? Seems to has something to do with tabtab. Kinda reminds me to #441 | #478

mischah avatar Nov 23 '16 21:11 mischah

Its find to ping me directly. 441 does seem similar, maybe a reintroduced issue?

On Wed, Nov 23, 2016 at 2:20 PM, Michael Kühnel [email protected] wrote:

Hej @mklabs https://github.com/mklabs, hope it’s okay to ping you directly 😘

Do you have any idea about that issue? Seems to has something to do with tabtab. Kinda reminds me to #441 https://github.com/yeoman/yo/issues/441

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yeoman/yo/issues/490#issuecomment-262632601, or mute the thread https://github.com/notifications/unsubscribe-auth/AFVMdgnPDjoaxiP3lDD3L4Yx9wi-JkJ4ks5rBK4cgaJpZM4K7CtM .

drosskopf avatar Nov 23 '16 22:11 drosskopf

Hey @mischah It's totally fine to ping me.

@drosskopf unfortunately, I cannot reproduce the issue. Could you paste here the result of running npm ls -g ? Just to check the version of tabtab yo is using on your system.

npm ls -g

or if it's too verbose, cd into yo package and run npm ls ?

cd C:\Users\drosskopf\AppData\Roaming\npm\node_modules\yo
npm ls

mklabs avatar Nov 24 '16 09:11 mklabs

@drosskopf ^^

eddiemonge avatar Dec 07 '16 19:12 eddiemonge

C:\Users\drosskopf>npm ls -g
C:\Users\drosskopf\AppData\Roaming\npm
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]

Edit by @mischah:

Moved npm ls -g output to this gist to increase readability of this issue: https://gist.github.com/mischah/44cf4264104688bfc0a515bc063eeb5c

drosskopf avatar Dec 07 '16 22:12 drosskopf

sorry first bug in github, didn't realize there was a reply.

drosskopf avatar Dec 07 '16 22:12 drosskopf

let me know if there is anything else you need

drosskopf avatar Dec 07 '16 22:12 drosskopf