@dunlix (and others)
Thanks, the disable plugins suggestion worked. Apparently it was the "sanitize html" plugging that was causing the problem.
Not even sure why we had that still installed.
Thanks all for the troubleshooting help!
I'm trying to upgrade nodeBB from 1.6.1 to 1.7.3. After
git fetch and
git reset --hard origin/v1.7.x I tried to run
./nodebb upgrade, but I get the following error message:
package.json not found. Populating package.json... OK module.js:538 throw err; ^ Error: Cannot find module 'graceful-fs' at Function.Module._resolveFilename (module.js:536:15) at Function.Module._load (module.js:466:25) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (/path-to-nodebb/NodeBB/src/file.js:10:16) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3)
Thanks for any help!
I ran smoothly updates from v1.4.2 to v1.6.1 but when trying to get to v1.7.x I seem to have lost my package.json file in my root folder.
I did change my config.json along the way to change the ip to the domain name in the "url" section to avoid the connexion being lost with my host (following this topic https://community.nodebb.org/topic/11324/error-listen-eaddrinuse-0-0-0-0-4800-looks-like-your-connection-to-nodebb-was-lost-please-wait-while-we-try-to-reconnect/9)
v1.6.1 works fine and I have this when I run a git status
# git status # On branch v1.7.x nothing to commit, working directory clean
but as soon as I try to run ./nodebb upgrade I get this
/root/nodebb/src/cli/index.js:29 throw e; ^ TypeError: Cannot read property 'R_OK' of undefined at Object.<anonymous> (/root/nodebb/src/cli/index.js:11:64) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/root/nodebb/nodebb:5:1) at Module._compile (module.js:541:32)
I did try
npm i but since I never get a package.json file I'm still stuck as soon as I try to run
./nodebb upgrade is there a way around this?
Thanks for any help!