当时忘记截图了,但是大概就是图上这样
这两步就能解决 npm install mysql2 --global, npm install mysql2 --save
npm install mysql2 --global
npm install mysql2 --save