Can't install plugins



  • Hello, I have been trying to install the emailer plugin for a while with no luck. I cd to my nodebb directory and do "npm install git://github.com/psychobunny/nodebb-plugin-emailer-local" It installs it, but it does not appear under installed plugins in the ACP. Can anybody help me? Thanks

    PS I've already tried reloading/restarting nodebb, the plugins still do not appear.


  • Global Moderator

    @Epic_Dinosaurz Just do

    npm install nodebb-plugin-emailer-local in your nodebb directory.

    :thumbsup: You're confusing two different methods of installing plugins. If you're using the git repo it would be git clone <repo URL> (but you'd run that in the node_modules folder.)

    npm is a command that installs a plugin directly from npmjs.com, which is where most plugins are hosted. So you don't need the full URL, just the name of the plugin.



  • @a_5smith
    Thanks, it worked. Also, I have another problem. I did ./nodebb reload and now my forum does not seem to start. When I do ./nodebb start it says it starts but I cannot connect to it. The log outputs this:

    Error: Not running
    at Server.close (net.js:1233:11)
    at shutdown (/root/nodebb/app.js:374:36)
    at process.<anonymous> (/root/nodebb/app.js:211:7)
    at process.EventEmitter.emit (events.js:95:17)
    at process._fatalException (node.js:272:26)
    3 restarts in 10 seconds, most likely an error on startup. Halting.


  • Admin

    @Epic_Dinosaurz Try running it in dev mode for a better idea of what went wrong:

    $ ./nodebb stop
    $ ./nodebb dev
    


  • @julian
    Here is what I get when I do ./nodebb dev

    Could it be a problem with nodejs?


  • Global Moderator

    @Epic_Dinosaurz

    It's a problem with the emailer plugin. You are probably installing and attempting to use an incompatible version.


  • Admin

    @pitaj You are correct

    Epic should attempt to install the emailer plugin from the ACP instead.



  • @a_5mith said in Can't install plugins:

    @Epic_Dinosaurz Just do

    npm install nodebb-plugin-emailer-local in your nodebb directory.

    :thumbsup: You're confusing two different methods of installing plugins. If you're using the git repo it would be git clone <repo URL> (but you'd run that in the node_modules folder.)

    npm is a command that installs a plugin directly from npmjs.com, which is where most plugins are hosted. So you don't need the full URL, just the name of the plugin.

    I'm quite new to NodeBB, would you mind telling me where the directory is? I hope it's in the Admin Panel...


  • Community Rep

    @ChaosYamYT Hello there!

    This post is very old! To install plugins, you should navigate to the admin panel's extend=>install plugins page and click the install button for the plugin you want. Then restart NodeBB when you are finished installing the plugins you want.

    Most plugins will not require another restart when changing their settings, unless they modify something like the theme or SSO.



  • @yariplus said in Can't install plugins:

    @ChaosYamYT Hello there!

    This post is very old! To install plugins, you should navigate to the admin panel's extend=>install plugins page and click the install button for the plugin you want. Then restart NodeBB when you are finished installing the plugins you want.

    Most plugins will not require another restart when changing their settings, unless they modify something like the theme or SSO.

    I am looking specifically for this plugin: nodebb-plugin-custom-header, but I can't find it..!


  • Community Rep

    @ChaosYamYT said in Can't install plugins:

    nodebb-plugin-custom-header

    This plugin is also very old, and hasn't been updated in over 2 years. There was a point in time where end users were getting burned by plugins that weren't upgraded to compensate for breaking changes, and so the NBB team decided that each plugin would have to explicitly declare their compatibility with NBB core. Hence, if a plugin wasn't upgraded to work with the version of NBB you're running, you won't see it.

    Of course, you can install it manually using npm install nodebb-plugin-x but YMMV



  • @Bri said in Can't install plugins:

    Of course, you can install it manually using npm install nodebb-plugin-x but YMMV

    What does this mean? Am I able to install the plugin I was looking for still?


  • Global Moderator

    @ChaosYamYT This plugin is incompatible with current versions of NodeBB. You could try opening an issue at the Github repo for the plugin, and asking the developer to fix it.


Log in to reply
 

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.