Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructor
-
Hi all,
I have a problem with updating my nodeBB forum.I get the following error:
2022-05-07T15:34:39.879Z [4567/4909] - error: uncaughtException: winston.Logger is not a constructor TypeError: winston.Logger is not a constructor at Object.<anonymous> (/opt/nodebb/node_modules/prompt/lib/prompt.js:39:30) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/opt/nodebb/src/database/mongo.js:8:16) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) {"date":"Sat May 07 2022 17:34:39 GMT+0200 (MitteleuropΓ€ische Sommerzeit)","error":{},"exception":true,"os":{"loadavg":[0.43,0.32,0.24],"uptime":11741984.91},"process":{"argv":["/usr/local/bin/node","/opt/nodebb/nodebb","reset","-p","nodebb-plugin-category-notifications"],"cwd":"/opt/nodebb","execPath":"/usr/local/bin/node","gid":1012,"memoryUsage":{"arrayBuffers":334333,"external":2258902,"heapTotal":19292160,"heapUsed":14440872,"rss":57151488},"pid":4909,"uid":1002,"version":"v16.15.0"},"stack":"TypeError: winston.Logger is not a constructor\n at Object.<anonymous> (/opt/nodebb/node_modules/prompt/lib/prompt.js:39:30)\n at Module._compile (node:internal/modules/cjs/loader:1105:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)\n at Module.load (node:internal/modules/cjs/loader:981:32)\n at Function.Module._load (node:internal/modules/cjs/loader:822:12)\n at Module.require (node:internal/modules/cjs/loader:1005:19)\n at require (node:internal/modules/cjs/helpers:102:18)\n at Object.<anonymous> (/opt/nodebb/src/database/mongo.js:8:16)\n at Module._compile (node:internal/modules/cjs/loader:1105:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)","trace":[{"column":30,"file":"/opt/nodebb/node_modules/prompt/lib/prompt.js","function":null,"line":39,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1105,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1159,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":981,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":822,"method":"_load","native":false},{"column":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1005,"method":"require","native":false},{"column":18,"file":"node:internal/modules/cjs/helpers","function":"require","line":102,"method":null,"native":false},{"column":16,"file":"/opt/nodebb/src/database/mongo.js","function":null,"line":8,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1105,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1159,"method":".js","native":false}]}
These are my settings:
- Ubuntu 20 server
- npm v8.5.5
- node v16.15.0
What I did:
- Update from v1.19.0 -> v1.19.7 (latest 1.19)
- Update from v1.19.7 -> v2.0.0
What am I missing, what did I do wrong?
How can I solve the issue? -
@baris said in Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructor:
npm ls winston
Result is:
[email protected] /opt/nodebb βββ¬ [email protected] β βββ [email protected] deduped βββ¬ [email protected] β βββ winston@ invalid: "2.x" from node_modules/prompt βββ [email protected] npm ERR! code ELSPROBLEMS npm ERR! invalid: winston@ /opt/nodebb/node_modules/prompt/node_modules/winston
In install/package.json:
3.7.2
-
@baris
Thanks for your suggestion.OMG, this is a really frustrating situation.
How can I solve? thinking
Command
# npm ls -prod json -depth=1
Result:
[email protected] /opt/nodebb
βββ (empty)
Command:
npm ls
Result
# npm ls [email protected] /opt/nodebb βββ @adactive/[email protected] βββ @apidevtools/[email protected] βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/parser@ extraneous βββ @babel/[email protected] extraneous βββ @babel/traverse@ extraneous βββ @babel/types@ extraneous βββ @commitlint/cli@ invalid: "16.2.4" from the root project βββ @commitlint/[email protected] βββ @commitlint/config-validator@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/is-ignored@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/load@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/rules@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @cspotcode/[email protected] extraneous βββ @cspotcode/[email protected] extraneous βββ @nodebb/[email protected] βββ @socket.io/[email protected] βββ @tootallnate/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @types/[email protected] extraneous βββ @ungap/[email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ cssstyle@ extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ es-abstract@ extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ eslint-plugin-import@ invalid: "2.26.0" from the root project βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ fsevents@ extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ grunt@ invalid: "1.5.2" from the root project βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ jsdom@ invalid: "19.0.0" from the root project βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ lint-staged@ invalid: "12.4.1" from the root project βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ mocha@ invalid: "10.0.0" from the root project βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ parse5@ extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ rxjs@ extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ smtp-server@ invalid: "3.11.0" from the root project βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ ts-node@ extraneous βββ [email protected] extraneous βββ typescript@ extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ workerpool@ extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] npm ERR! code ELSPROBLEMS npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/generator npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-function-name npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-get-function-arity npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-member-expression-to-functions npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-module-imports npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-module-transforms npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-optimise-call-expression npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-replace-supers npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-simple-access npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-split-export-declaration npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helpers npm ERR! extraneous: @babel/parser@ /opt/nodebb/node_modules/@babel/parser npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/template npm ERR! extraneous: @babel/traverse@ /opt/nodebb/node_modules/@babel/traverse npm ERR! extraneous: @babel/types@ /opt/nodebb/node_modules/@babel/types npm ERR! invalid: @commitlint/cli@ /opt/nodebb/node_modules/@commitlint/cli npm ERR! extraneous: @commitlint/config-validator@ /opt/nodebb/node_modules/@commitlint/config-validator npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/ensure npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/execute-rule npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/format npm ERR! extraneous: @commitlint/is-ignored@ /opt/nodebb/node_modules/@commitlint/is-ignored npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/lint npm ERR! extraneous: @commitlint/load@ /opt/nodebb/node_modules/@commitlint/load npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/message npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/parse npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/read npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/resolve-extends npm ERR! extraneous: @commitlint/rules@ /opt/nodebb/node_modules/@commitlint/rules npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/to-lines npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/top-level npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/types npm ERR! extraneous: @cspotcode/[email protected] /opt/nodebb/node_modules/@cspotcode/source-map-consumer npm ERR! extraneous: @cspotcode/[email protected] /opt/nodebb/node_modules/@cspotcode/source-map-support npm ERR! extraneous: @tootallnate/[email protected] /opt/nodebb/node_modules/@tootallnate/once npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node10 npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node12 npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node14 npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node16 npm ERR! extraneous: @types/[email protected] /opt/nodebb/node_modules/@types/json5 npm ERR! extraneous: @ungap/[email protected] /opt/nodebb/node_modules/@ungap/promise-all-settled npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/abab npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/abbrev npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/acorn-globals npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/acorn-walk npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/agent-base npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ansi-colors npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ansi-escapes npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/anymatch npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/argparse npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array-each npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array-includes npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array-slice npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array.prototype.flat npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/astral-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/base32.js npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/binary-extensions npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/braces npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/browser-process-hrtime npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/browser-stdout npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/chokidar npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cli-cursor npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cli-truncate npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/colorette npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/confusing-browser-globals npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cosmiconfig-typescript-loader npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cosmiconfig npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/create-require npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cssom npm ERR! extraneous: cssstyle@ /opt/nodebb/node_modules/cssstyle npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/data-urls npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/dateformat npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/decimal.js npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/define-properties npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/detect-file npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/domexception npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eastasianwidth npm ERR! extraneous: es-abstract@ /opt/nodebb/node_modules/es-abstract npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/es-to-primitive npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/escodegen npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eslint-import-resolver-node npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eslint-module-utils npm ERR! invalid: eslint-plugin-import@ /opt/nodebb/node_modules/eslint-plugin-import npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/esprima npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eventemitter2 npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/execa npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/exit npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/expand-tilde npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/fill-range npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/findup-sync npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/fined npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/flagged-respawn npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/flat npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/for-in npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/for-own npm ERR! extraneous: fsevents@ /opt/nodebb/node_modules/fsevents npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/gensync npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/get-stream npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/get-symbol-description npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/getobject npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/glob-parent npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/global-modules npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/global-prefix npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-cli npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-known-options npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-legacy-log-utils npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-legacy-log npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-legacy-util npm ERR! invalid: grunt@ /opt/nodebb/node_modules/grunt npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/has-bigints npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/has-tostringtag npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/homedir-polyfill npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/hooker npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/html-encoding-sniffer npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/html-escaper npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/http-proxy-agent npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/https-proxy-agent npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/human-signals npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/internal-slot npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/interpret npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ipv6-normalize npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-absolute npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-bigint npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-binary-path npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-boolean-object npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-callable npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-date-object npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-negative-zero npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-number-object npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-number npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-potential-custom-element-name npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-relative npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-shared-array-buffer npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-string npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-symbol npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-unc-path npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-unicode-supported npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-weakref npm ERR! invalid: jsdom@ /opt/nodebb/node_modules/jsdom npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/liftup npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/lilconfig npm ERR! invalid: lint-staged@ /opt/nodebb/node_modules/lint-staged npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/listr2 npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/lodash.isequal npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/log-symbols npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/log-update npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/make-error npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/make-iterator npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/map-cache npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/micromatch npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/mimic-fn npm ERR! invalid: mocha@ /opt/nodebb/node_modules/mocha npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/nopt npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/npm-run-path npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/nwsapi npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object-keys npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.assign npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.defaults npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.entries npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.map npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.pick npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.values npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/onetime npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/os-homedir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/os-tmpdir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/osenv npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/p-map npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/parse-filepath npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/parse-passwd npm ERR! extraneous: parse5@ /opt/nodebb/node_modules/parse5 npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/path-root-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/path-root npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/picomatch npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/pidtree npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/readdirp npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/rechoir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/resolve-dir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/restore-cursor npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/rfdc npm ERR! extraneous: rxjs@ /opt/nodebb/node_modules/rxjs npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/saxes npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/slice-ansi npm ERR! invalid: smtp-server@ /opt/nodebb/node_modules/smtp-server npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/sprintf-js npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/string-argv npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/string.prototype.trimend npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/string.prototype.trimstart npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/strip-bom npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/strip-final-newline npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/symbol-tree npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/to-fast-properties npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/to-regex-range npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/tough-cookie npm ERR! extraneous: ts-node@ /opt/nodebb/node_modules/ts-node npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/tsconfig-paths npm ERR! extraneous: typescript@ /opt/nodebb/node_modules/typescript npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/unbox-primitive npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/unc-path-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/underscore.string npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/v8-compile-cache-lib npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/v8flags npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/w3c-hr-time npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/w3c-xmlserializer npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/whatwg-encoding npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/whatwg-mimetype npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/whatwg-url npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/which-boxed-primitive npm ERR! extraneous: workerpool@ /opt/nodebb/node_modules/workerpool npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ws npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/xml-name-validator npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/xmlchars npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/yargs-unparser npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/yn npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/yocto-queue
-
Before blaming others, blame yourself!
Stupid me, was running npm as root OMG.
-----> So NEVER run npm as root !! <----
Yes, you knew that before, but not me ...Ok now I have the v2.0.0 running but got these errors when using
./nodebb upgrade
:WARNING in ./build/public/scripts-client.js 2175:11-46 require.main.require is not supported by webpack. ERROR in ./build/public/scripts-client.js 3048:0-100 Module not found: Error: Can't resolve 'plugin/emoji-extended/completion' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js 3054:162-247 Module not found: Error: Can't resolve 'plugin/emoji-extended/composer/modal' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js 3061:392-465 Module not found: Error: Can't resolve 'plugin/emoji-extended/detection' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/debug' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/detection' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/items' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/settings' in '/opt/nodebb/build/public' webpack 5.72.0 compiled with 7 errors and 1 warning in 37497 ms 2022-05-11T19:36:36.677Z [4567/22485] - info: [build] Asset compilation successful. Completed in 45.333sec.
But these mentioned modules are all installed and active.
So what is the error for if active and installed?[solved] I also get errors in the developers console:
2022-05-11T19:41:49.808Z [4567/22791] - error: [plugins] Error executing 'static:app.load' in plugin 'nodebb-plugin-custom-homepage' Error: Route.get() requires a callback function but got a [object Object] at Route.<computed> [as get] (/opt/nodebb/node_modules/express/lib/router/route.js:211:15) at Function.proto.<computed> [as get] (/opt/nodebb/node_modules/express/lib/router/index.js:521:19) at Plugin.init (/opt/nodebb/node_modules/nodebb-plugin-custom-homepage/library.js:20:7) at node:internal/util:360:7 at new Promise (<anonymous>) at node:internal/util:346:12 at Object.fireStaticHook [as static] (/opt/nodebb/src/plugins/hooks.js:227:19) at async Hooks.fire (/opt/nodebb/src/plugins/hooks.js:123:17) at async Plugins.reloadRoutes (/opt/nodebb/src/plugins/index.js:152:2) at async module.exports (/opt/nodebb/src/routes/index.js:144:2)
Seems that the custom homepage plugin is damaged ... or just not ready for v2.
So I need to disable that plugin and build again.
Let's see what that gives us ...So the plugin "https://github.com/NodeBB/nodebb-plugin-custom-homepage" messed up the whole forum.
Deactivated that. Now nodebb is back on the road.Does anyone have an idea, how I can a custom homepage in nodebb without this plugin?