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
I had a similar problem but my project is part of a bigger system so neither switching to nvm instead of npm nor upgrading my version of Node.js were options.
However, moving npm backwards to a previous version was an option. I found 4.6.1 worked without complaint.
sudo npm install -g npm@4.6.1
This version of npm did not complain.