• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Private git clone installs for plugins.

Scheduled Pinned Locked Moved Technical Support
11 Posts 4 Posters 2.4k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    wrote on last edited by
    #1

    I was installing in node_modules, works fine. I also did npm install --production on each git clone for each plugin ive done.

    But when I go to install a new plugin from ACP backend it always deletes / removes all the folders in node_modules that i had git cloned previously thus resetting entire plugins.

    What am I doing wrong?

    1 Reply Last reply
    0
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    wrote on last edited by Joykiller
    #2

    I setup a private repo on npm, still having same issue this is strange.. Anyone had this issue before?

    When you install a plugin and some reason others get removed? Mind you im using Dev atm to make sure everything works maybe theres something wrong with that?

    Seems the private NPM installs by cli are still installed, but the ACP installs get removed.

    1 Reply Last reply
    0
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    wrote on last edited by Joykiller
    #3

    @staff So yeah, It seems my bug has to do with ONLY installs by ACP, If i install any plugin by the back end it automaticllay removes all of them EXCEPT for the ones done by cli. Anyone know why this is the case? Uninstalling from ACP is pretty much the same as installing fyi. Unless its from ssh/cli

    teh_gT 1 Reply Last reply
    0
  • teh_gT Offline
    teh_gT Offline
    teh_g
    replied to Joykiller on last edited by
    #4

    @joykiller What version of node/npm are you using? I think node v8 does this, I'd recommend going back to the LTS version.

    PitaJP JoykillerJ 2 Replies Last reply
    1
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to teh_g on last edited by
    #5

    @teh_g the reason it happens with node 8 is that npm@5 comes with node 8. This issue is caused by npm@5

    1 Reply Last reply
    1
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    replied to teh_g on last edited by Joykiller
    #6

    @teh_g said in Private git clone installs for plugins.:

    @joykiller What version of node/npm are you using? I think node v8 does this, I'd recommend going back to the LTS version.

    @pitaj said in Private git clone installs for plugins.:

    @teh_g the reason it happens with node 8 is that npm@5 comes with node 8. This issue is caused by npm@5

    Ah thought might have something to do with that.

    What node should I use n with for Nodebb? I run it as a service so ill just update the startup link. Currently using the following:
    $ npm --version
    5.3.0
    $ node --version
    v8.4.0

    1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    wrote on last edited by
    #7

    6 is recommended at this time.

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #8

    Node 8 and npm@5 can work with custom plugins, but you should be using [email protected] minimum and npm link.

    Let's say you have a directory called web with the nodebb directory within it. Clone your custom plugin repositories into web (so there's, for instance web/nodebb-plugin-customized-by-you), and then run npm link inside the plugin repository directory, and then npm link nodeb-plugin-customized-by-you in the nodebb directory.

    1 Reply Last reply
    1
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    wrote on last edited by julian
    #9

    @pitaj npm@5 has lockfiles no? Perhaps we should use that... Or yarn.lock...

    JoykillerJ 1 Reply Last reply
    0
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    replied to julian on last edited by
    #10

    @julian said in Private git clone installs for plugins.:

    @pitaj npm@5 has lockfiles no? Perhaps we should use that... Or yarn.lock...

    Yeah theres lock files.

    1 Reply Last reply
    0
  • JoykillerJ Offline
    JoykillerJ Offline
    Joykiller GNU/Linux
    wrote on last edited by
    #11

    Ok using 6.11.0 LTS and works again no problems. Thx.

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development