Skip to content

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

Description

@meltuhamy
$ 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
wat@0.1.40 C:\Users\mohamed.eltuhamy\AppData\Roaming\npm\node_modules\wat
├── leven@1.0.2
├── vorpal-tour@0.0.3
├── minimist@1.2.0
├── sluggin@0.1.1
├── vorpal-less@0.0.13 (slice-ansi@0.0.3)
├── walk@2.3.9 (foreachasync@3.0.0)
├── strip-ansi@3.0.1 (ansi-regex@2.0.0)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── tmp@0.0.27 (os-tmpdir@1.0.1)
├── mdast-strip-badges@1.0.0 (unist-util-visit@1.0.1, is-badge@1.1.0, mdast-util-definitions@1.1.0)
├── wrap-ansi@0.2.0 (splice-string@1.0.0)
├── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, has-ansi@2.0.0, ansi-styles@2.2.0)
├── vorpal-grep@0.0.5 (glob@5.0.15)
├── rimraf@2.5.2 (glob@7.0.0)
├── mdast@1.2.0 (camelcase@1.2.1, repeat-string@1.5.2, to-vfile@1.0.0, ccount@1.0.0, longest-streak@1.0.0, collapse-white-space@1
.0.0, trim-trailing-lines@1.0.0, extend.js@0.0.2, trim@0.0.1, markdown-table@0.4.0, vfile@1.3.1, text-table@0.2.0, user-home@2.0.
0, commander@2.9.0, he@0.5.0, debug@2.2.0, minimatch@2.0.10, unified@1.0.0, npm-prefix@1.2.0, vfile-reporter@1.5.0, ware@1.3.0, c
oncat-stream@1.5.1)
├── google@1.5.0 (cheerio@0.19.0)
├── request@2.69.0 (is-typedarray@1.0.0, aws-sign2@0.6.0, forever-agent@0.6.1, caseless@0.11.0, stringstream@0.0.5, tunnel-agent@
0.4.2, oauth-sign@0.8.1, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, node-uuid@1.4.7, qs@6.0.2, combined-stream@1.0.
5, aws4@1.2.1, tough-cookie@2.2.1, mime-types@2.1.10, form-data@1.0.0-rc3, bl@1.0.3, har-validator@2.0.6, http-signature@1.1.1, h
awk@3.1.3)
├── highlight.js@8.9.1
├── moment@2.11.2
├── lodash@3.10.1
└── vorpal@1.9.5 (mindash@4.5.0, node-localstorage@0.6.0, log-update@1.0.2, inquirer@0.11.0, babel-polyfill@6.5.0, 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions