@anirban-dutta I use command like this npm install git+https://github.com/me-cooper/nodebb-plugin-makesmart-gallery.git when repo is not recognized by npm install
Just remember to add .git at the end of github repo url.
I'm trying to figure out how to write a plugin, so I'm trying to set up a development environment so I could step through code.
I tried webstorm, but I'm getting the dreaded EADDRINUSE error
Debugger listening on [::]:61236
Error: listen EADDRINUSE :::61236
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at Agent.Server._listen2 (net.js:1258:14)
at listen (net.js:1294:10)
at net.js:1404:9
at _combinedTickCallback (internal/process/next_tick.js:83:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
Here's the command line that webstorm runs.
"C:\Program Files\JetBrains\WebStorm 2017.2.4\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=61236 --expose_debug_as=v8debug C:\web\nodebb\NodeBB\nodebb dev
@julian said in Debugging nodebb:
Looks like you already have a NodeBB instance running... or maybe something else running on port 61236.
Try checking out
ps aux | grep node
and killing off the other NodeBB process, if there is one.
Thanks to @ben_lubar I was able to get this working. Turns out I needed to start app.js not nodebb because nodebb would fork and screw up the debugging.