I've messed up my nodejs / gulp / browsersync setup at my development notebook. In the end I could only resolve the issues by uninstalling node, reinstalling node js and nvm and enabling a version compatible with the setup of my existing projects ...
I followed several tutorials mentioned below. Now to reactivate each of my project I have to update the installed modules as well.
When the following error appears, try to reinstall used modules:
Error: ReferenceError: internalBinding is not defined
- rm -rf node_modules && rm package-lock.json
- npm cache clean --force && npm install
Error: ReferenceError: primordials is not defined
In this case I have to specify nodejs version:
cd /into/project/directory && nvm install lts/dubnium && nvm use lts/dubnium && npm install