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
You can also use NVM - I did this to solve the same problem.
first type
nvm ls-remote to view the latest versions available,
nvm ls-remote
then
nvm install [version] (I used v8.7.0)
nvm install [version]
everything should be fine after that.