wat icon indicating copy to clipboard operation
wat copied to clipboard

wat tour throws error at clerk.js 'error saving to the local filesystem', undefined is not a function

Open meltuhamy opened this issue 9 years ago • 10 comments

$ npm install -g wat
C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\wat -> C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\bin\index.js
[email protected] C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], collapse-white-space@1
.0.0, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected].
0, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], c
[email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], tunnel-agent@
0.4.2, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected].
5, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], h
[email protected])
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], babel-runtime@
6.5.0)

$ wat tour
?

  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  |                                                                                                                                                                                                                                       |
  |  Welcome to Wat. Let's look up how to use Javascript's "array.slice()" method.                                                                                                                                                        |
  |                                                                                                                                                                                                                                       |
  |  Type "js array slice" and press [enter].                                                                                                                                                                                             |
  |                                                                                                                                                                                                                                       |
  |  (You can exit using [control] + c at any time.)                                                                                                                                                                                      |
  |                                                                                                                                                                                                                                       |
  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

? js array slice
C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\dist\clerk\clerk.js:368
      this.log('Error saving to the local filesystem: ', e);
           ^
TypeError: undefined is not a function
    at Object.file (C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\dist\clerk\clerk.js:368:12)
    at C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\dist\clerk\clerk.js:338:19
    at Request._callback (C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\dist\util.js:573:11)
    at Request.self.callback (C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\node_modules\request\request.js:199:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\node_modules\request\request.js:1036:10)
    at Request.emit (events.js:129:20)
    at IncomingMessage.<anonymous> (C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat\node_modules\request\request.js:963:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16

meltuhamy avatar Feb 24 '16 09:02 meltuhamy

Okay thanks, will check out.

dthree avatar Feb 24 '16 22:02 dthree

I've got a very similar issue (windows 64bits wat is installed globally), wat js array slice crash the same way


c:\Users\b.jehanno\AppData\Roaming\npm\node_modules\wat\dist\clerk\clerk.js:368
      this.log('Error saving to the local filesystem: ', e);
           ^

TypeError: this.log is not a function
    at Object.file (c:\Users\b.jehanno\AppData\Roaming\npm\node_modules\wat\dist\clerk\clerk.js:368:12)
    at c:\Users\b.jehanno\AppData\Roaming\npm\node_modules\wat\dist\clerk\clerk.js:338:19
    at Request._callback (c:\Users\b.jehanno\AppData\Roaming\npm\node_modules\wat\dist\util.js:573:11)
    at Request.self.callback (c:\Users\b.jehanno\AppData\Roaming\npm\node_modules\wat\node_modules\request\request.js:199:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (c:\Users\b.jehanno\AppData\Roaming\npm\node_modules\wat\node_modules\request\request.js:1036:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (c:\Users\b.jehanno\AppData\Roaming\npm\node_modules\wat\node_modules\request\request.js:963:12)

beuted avatar Feb 26 '16 17:02 beuted

I have the same problem. Running Windows 8.1 x64. Installed with "npm install -g wat".

mschaad avatar Feb 26 '16 17:02 mschaad

Okay got it.

dthree avatar Feb 26 '16 23:02 dthree

The same problem on win7 x64 (wat installed globally too)

MammaSonnim avatar Mar 03 '16 22:03 MammaSonnim

Also having the same issue. Tried running as admin, didn't help.

tommitytom avatar Jun 15 '16 00:06 tommitytom

exact same issue. On Windows 10 64 bit

vivdev avatar Jun 16 '16 10:06 vivdev

Yep, still happening! :)

praxiq avatar Nov 11 '16 08:11 praxiq

Still happening...

Awpatterson217 avatar Jul 23 '17 02:07 Awpatterson217

Same error, Windows 10 Pro.

Project is abandoned?

Nex-Otaku avatar Jan 25 '20 15:01 Nex-Otaku