Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Errors in installation on Windows Subsystem for Linux #92

Open
@sjscotti

Description

Describe the bug
A clear and concise description of what the bug is.

Following the same steps for installation that were described in issue #85, I get an error on the npm start command and it fails to complete the installation... here is the command and response I received...

$ npm start

> [email protected] start /mnt/c/Users/Steve/nlpjsapp/nlp.js-app
> node .

[2021-05-18 02:54:19.455 +0000] INFO  (1790 on Scotti-Flex): log level: debug
(node:1790) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1790) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
(node:1790) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
(node:1790) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
(node:1790) UnhandledPromiseRejectionWarning: MongooseTimeoutError: Server selection timed out after 30000 ms
    at new MongooseTimeoutError (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/node_modules/mongoose/lib/error/timeout.js:22:11)
    at NativeConnection.Connection.openUri (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/node_modules/mongoose/lib/connection.js:763:19)
    at Mongoose.connect (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/node_modules/mongoose/lib/index.js:332:15)
    at /mnt/c/Users/Steve/nlpjsapp/nlp.js-app/server/core/database.js:52:13
    at new Promise (<anonymous>)
    at Database.connect (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/server/core/database.js:51:10)
    at startDatabase (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/server/boot/start-database.js:42:22)
    at start (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/server/index.js:129:8)
    at Object.<anonymous> (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/server/index.js:133:1)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
(node:1790) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1790) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:1790) UnhandledPromiseRejectionWarning: Error: Connection error
    at NativeConnection.<anonymous> (/mnt/c/Users/Steve/nlpjsapp/nlp.js-app/server/core/database.js:54:32)
    at NativeConnection.emit (events.js:376:20)
    at /mnt/c/Users/Steve/nlpjsapp/nlp.js-app/node_modules/mongoose/lib/connection.js:772:37
    at processTicksAndRejections (internal/process/task_queues.js:77:11)
(node:1790) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

To Reproduce
Follow steps for installation described in issue #85

Expected behavior
I thought that I would be able to see the app user interface when I opened a browser with url localhost:3000

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 running Windows Subsystem for Linux 2 (Linux 5.4.72-microsoft-standard-WSL2 x86_64)
  • Linux distribution: Ubuntu 20.04.2 LTS

Additional context
Add any other context about the problem here.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions