I have always git pull master, and always has this Error : cannot find module ...
. I did try .\nodebb upgrade
, npm install
, but nothing works. Even changing branch git checkout v0.7.2
still showing cannot find module
.
The only thing work for me is, to remove all node_modules then install it back. After that, I did npm install redis and connect-redis.
// remove all node_modules
rm -rf node_modules/
// re-install dependencies
npm install
// install redis and redis-server
npm install redis
npm install connect-redis