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.

+ mysql@2.17.1
updated 1 package and audited 32 packages in 1.447s
found 0 vulnerabilities

Well i face the same problem today after install ubuntu 19.10. and i solve this by updating npm using below command

npm install npm@latest -g

For more details you can check this issue in github

npm version issue

Hope it will help

  • 2
    Thanks, it works when I updated Node on my machine to the latest version 14.2.0. – Thinh NV May 10 '20 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.