Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlinked plugin can't find npm modules #30

Open
eadsjr opened this issue May 12, 2017 · 0 comments
Open

Symlinked plugin can't find npm modules #30

eadsjr opened this issue May 12, 2017 · 0 comments

Comments

@eadsjr
Copy link

eadsjr commented May 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant