OK, I ran ./nodebb upgrade after deleting the above mentioned files. No dice.
Here's the output:
yilm@yilm:~/nodebb$ ./nodebb upgrade
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: connect 2.x series is deprecated
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: no longer maintained
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN notice [SECURITY] npm has the following vulnerability: 1 high. Go here for more details: https://nodesecurity.io/advisories?search=npm&version=1.4.29 - Run npm i npm@latest -g
to upgrade your npm version, and then npm audit
to get more info.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for nodebb-widget-essentials@~0.0.21
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'nodebb'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/yilm/.npm/_logs/2018-07-11T17_50_42_742Z-debug.log
[..................] / rollbackFailedOptional: verb npm-sessio
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] license should be a valid SPDX license expression
Error: Cannot find module 'nconf'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/yilm/nodebb/app.js:23:13)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
NodeBB Dependencies up-to-date!
Now, I'm getting a different error when I run ./nodebb start:
yilm@yilm:~/nodebb$ ./nodebb start
Starting NodeBB
"./nodebb stop" to stop the NodeBB server
"./nodebb log" to view server output
module.js:549
throw err;
^
Error: Cannot find module 'nconf'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/yilm/nodebb/loader.js:3:13)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Because it is a fresh install to begin with (nothing to loose), how would I remove nodebb from my server so I can try a fresh reinstall and then upgrade again? Or better yet, reinstall the latest instead so as to skip the upgrade.
I followed the Ubuntu install (https://docs.nodebb.org/installing/os/ubuntu/) - how do I just reinstall the latest version?
I am assuming I need to change 1.9.x to 1.10.x in the following command:
git clone -b v1.9.x https://github.com/NodeBB/NodeBB.git nodebb
Am I right?