Skip to content

Symlinked plugin can't find npm modules #30

@eadsjr

Description

@eadsjr

I wanted to include my plugins in my git repo so I symlinked them like so:

ln -s "$PWD/my_plugin" ~/.meteor-kitchen/plugins/my_plugin

When run, this resulted in:

Plugin "my_plugin"...
Executing plugin...
module.js:457
    throw err;
    ^

Error: Cannot find module 'meteor-kitchen'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/eadsjr/Projects/datalba_2017_prototype/meteor-kitchen-react/plugins/my_plugin/plugin.js:6:15)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)

Error executing "node". No such file or directory

plugin.js:6 is var kitchen = require("meteor-kitchen");

Also, I do have node installed:

$ node --version
v6.6.0

And the example plugins work.

I had a similar issue when referencing "npm": ["some_package"] in the plugin.json file, which I assume is simply not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions