npm is 2.15.11
nodejs is 4.8.3
after removing node_modules and running "npm i", "nodebb upgrade" gives me this:
odeBB could not be initialised because there was an error while loading dependencies.
Please run "npm install --production" and try again.
For more information, please see: https://docs.nodebb.org/en/latest/installing/os.html
/home/ljhardy/public_html/nodebb/nodebb/nodebb:46
throw e;
^
Error: Cannot find module 'prompt'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/nodebb:37:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
I ran "npm install --production", then "./nodebb upgrade" again gives the same error as previous:
odeBB could not be initialised because there was an error while loading dependencies.
Please run "npm install --production" and try again.
For more information, please see: https://docs.nodebb.org/en/latest/installing/os.html
/home/ljhardy/public_html/nodebb/nodebb/nodebb:46
throw e;
^
Error: Cannot find module 'prompt'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ljhardy/public_html/nodebb/nodebb/nodebb:37:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)