Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

Error: Cannot find module 'db-migrate/lib/log' #142

@justineuro

Description

@justineuro

After npm install, source env_local, then bin/db-migrate up I get the error given below. Have looked into node_modules/db-migrate/lib folder and no log subdir exists. Thanks for any help you can give in this regard,

$ bin/db-migrate up
module.js:98
var filename=(cov_w97yiacr1.s[257]++,Module._findPath(request,paths,isMain));cov_w97yiacr1.s[258]++;if(!filename){cov_w97yiacr1.b[90][0]++;var err=(cov_w97yiacr1.s[259]++,new Error(`Cannot find module '${request}'`));cov_w97yiacr1.s[260]++;err.code='MODULE_NOT_FOUND';cov_w97yiacr1.s[261]++;throw err;}else{cov_w97yiacr1.b[90][1]++;}cov_w97yiacr1.s[262]++;return filename;};// Given a file name, pass it to the proper extension handler.
                                                                                                                                                                                                                                                                                                   ^

Error: Cannot find module 'db-migrate/lib/log'
    at Function.Module._resolveFilename (module.js:98:172)
    at Function.Module._load (module.js:96:765)
    at Module.require (module.js:101:252)
    at require (internal/module.js:3:7490)
    at Object.<anonymous> (/path/to//badgekit-api/bin/db-migrate:9:11)
    at Module._compile (module.js:110:1141)
    at Object.Module._extensions..js (module.js:111:198)
    at Module.load (module.js:99:659)
    at tryModuleLoad (module.js:97:556)
    at Function.Module._load (module.js:97:319)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions