@Thadeusz-Lay so are you trying to create your own plugin? meta is a NodeBB module. You have to require it from NodeBB with require.main.require('./src/meta') on the server side.
How specify dependency in my plugin
-
I need to use "SparkPost" in my plugin and I need to define the dependency in my plugin.json to be installed automatically. Anyone can help me?
-
@Doppy add it to your plugins
package.json
"dependencies": { "sparkpost": "1.3.6" }
-
Alternatively, just install it with the
--save
flag and it will pin the current version in your package.jsonnpm install --save sparkpost