We haven't figured out why this is happening yet, relevant GH issue https://github.com/NodeBB/NodeBB/issues/3200
pichalite created this issue in NodeBB/NodeBB closed JS errors on fresh install of v0.7.x #3200Update form 1.11.0 to 1.11.12
-
Hi Guys!
I try to update to 1.11.12 by this:
git fetch git reset --hard origin/v1.11.x ./nodebb upgrade
and it show me error:
npm ERR! Linux 4.4.0-137-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! node v6.16.0 npm ERR! npm v3.10.10 npm ERR! path /var/www/community/www/node_modules/highlight.js/tools/build.js npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall chmod npm ERR! enoent ENOENT: no such file or directory, chmod '/var/www/community/www/node_modules/highlight.js/tools/build.js' npm ERR! enoent ENOENT: no such file or directory, chmod '/var/www/community/www/node_modules/highlight.js/tools/build.js' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /var/www/community/www/npm-debug.log
-
Node 6 is too old for NodeBB 1.11.x
-
This is due to an issue with one of our dependencies: https://github.com/highlightjs/highlight.js/issues/1984
It should be automatically resolved within 24 hours.
-
Thanks!
Fixed by
npm install github:highlightjs/highlight.js
-
FYI the issue has been resolved upstream, you can use latest highlight.js again. However, latest markdown plugin uses an older version which is just fine as well.