Skip to content

Getting cannot find module error when trying to run server #1

@pkayfire

Description

@pkayfire

Hi,

I'm trying to run the server on my localhost using the command provided node server.js, but I'm running into the following issue.

module.js:472
    throw err;
    ^

Error: Cannot find module 'express-rate-limit'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/pkayfire/Documents/workspace/sbly-interview-bug/app.js:5:19)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

I'm on NPM version 3.10.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions