Skip to content

sequelize-cli non-functional @node7.0.0 #383

@awitherspoon

Description

@awitherspoon

Using sequelize with the latest version of node throws the following error:

Sequelize [Node: 7.0.0, CLI: 2.4.0, ORM: 3.24.6]

module.js:474
    throw err;
    ^

Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:472:15)
    at Function.Module._load (module.js:420:25)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:17:20
    at Object.<anonymous> (/usr/local/lib/node_modules/sequelize-cli/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)

This seems to be related to a bad version of graceful-fs, as noted in this npm issue

Needless to say, the expected behavior was that updating the package would allow for it to work inside node7.0.0. It seems that the graceful-fs package being used by sequelize-cli needs to be updated.

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