kitchen-cli
kitchen-cli copied to clipboard
Symlinked plugin can't find npm modules
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.