Skip to content

Unable to have node_modules/ directory in new dpd project #320

@mwq27

Description

@mwq27

I can create a new dpd project, and start it up, with everything working as it should. But if I add a package.json file, and install my modules with npm install, I start getting this error when I try to start dpd :

Error loading module node_modules/grunt-cli
Error: Cannot find module '/Users/xxxx/mysites/deploydApp/app/node_modules/grunt-cli'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at module.exports.fs.readdir.fs.readdir.dir.forEach.d.on.process.send.moduleError (/usr/local/deployd/node_modules/deployd/lib/type-loader.js:39:27)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

If I delete the node_modules directory that was created when running npm install, the app starts up normally again. Anyone else seeing this?

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