I was trying to install mysql for npm with the comand
npm install mysql, then I receive this error message:
npm WARN npm npm does not support Node.js v10.15.2 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ npm WARN using --force I sure hope you know what you are doing.
My version of node.js is 10.15.2 and the version of npm is 5.8.0. I think the problem is that they are not compatible. I was trying to update node, but I didn't succed in it. Solutions?
I have switched to a newer version of nodejs, the twelve one, with this code:
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - sudo apt-get install -y nodejs
The problem is that I still can't download mysql for npm. The message is:
npm WARN saveError ENOENT: no such file or directory, open '/home/dario/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/dario/package.json' npm WARN dario No description npm WARN dario No repository field. npm WARN dario No README data npm WARN dario No license field. + email@example.com updated 1 package and audited 32 packages in 1.447s found 0 vulnerabilities