@PitaJ I think you fucked up, clean pull from master...
D:\dev\nodebb\NodeBB>.\nodebb setup
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module './package-install'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Module.require.main.require (D:\dev\nodebb\NodeBB\require-main.js:8:10)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (D:\dev\nodebb\NodeBB\src\cli\index.js:8:22)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
EDIT:
I rearranged the requires so the require('../../require-main'); is last:
var fs = require('fs');
var path = require('path');
var packageInstall = require('./package-install');
var dirname = require('./paths').baseDir;
require('../../require-main');
Seems to work.
EDIT2:
maybe not
Dependencies outdated or not yet installed.
Installing them now...
audited 4313 packages in 7.307s
found 5 vulnerabilities (1 low, 4 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
OK
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module '../../package.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Module.require.main.require (D:\dev\nodebb\NodeBB\require-main.js:8:10)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (D:\dev\nodebb\NodeBB\src\cli\index.js:75:11)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)