The problem of node.jsmysqlcannot findmodule “net” and “tls” and “fs”

  node.js, question

According to mysql written in the tutorial, npm gave felixge/node-mysql, but why did you always report that you couldn’t find the package?

Do you see if the directory of your project has the folder node_modules? here are the modules you installed. if you cannot find the modules, either you have not installed them or you have not introduced them. Check it carefully.