Ответы пользователя по тегу Node.js
  • Построение Router выводит ошибку [TypeError: Cannot read property 'Kerberos' of undefined]. Как решить?

    nzhulikov
    @nzhulikov
    Do something, done nothing
    У меня такая же ошибка, однако у меня она не влечёт никаких последствий и код отрабатывает. Node-inspector показал, что она возникает где-то в ядре mongodb драйвера, который используется в mongoose. Соответственно, когда мы подключаем mongoose, тогда она и выскакивает.
    В ридми драйвера вот что есть:

    ## Troubleshooting

    The MongoDB driver depends on several other packages. These are.

    * mongodb-core
    * bson
    * kerberos
    * node-gyp

    The `kerberos` package is a C++ extension that requires a build environment to be installed on your system. You must be able to build node.js itself to be able to compile and install the `kerberos` module. Furthermore the `kerberos` module requires the MIT Kerberos package to correctly compile on UNIX operating systems. Consult your UNIX operation system package manager what libraries to install.

    {{% note class="important" %}}
    Windows already contains the SSPI API used for Kerberos authentication. However you will need to install a full compiler tool chain using visual studio C++ to correctly install the kerberos extension.
    {{% /note %}}


    Так же в свежем апдейте драйвера в списке обновлений есть запись:

    1.3.1 2016-02-05
    ----------------
    - Removed annoying missing Kerberos error (NODE-654).


    Вот ссылка на ошибку: /NODE-654

    Так что, я думаю, стоит просто обновить драйвер и ошибка исчезнет.
    Ответ написан
    Комментировать