how can I solve the following error? I use Ubuntu 16. When I run any npm command such as "npm run dev" I get this error:
ERROR: npm is known not to run on Node.js v4.2.6 Node.js 4 is supported but the specific version you're running has a bug known to break npm. Please update to at least ${rel.min} to use this version of npm. You can find the latest release of Node.js at https://nodejs.org/
I had the same issue with Ubuntu 16.04 and fixed it by using following commands step by step.
Firstly removed nodejs
Installed nvm using
After this run