mysql安装错误二,错误:请手动安装mysql2软件包

使用sequalize db:migrate命令时,出现以下错误。回顾以前对类似问题的一些评论,人们说这是一个依赖问题,但是每当我运行时

npm安装mysql2

要么

npm install -g mysql2

我犯了同样的错误。

larry@DESKTOP-NSSNPRR:/mnt/c/Users/larry/Desktop/node/AAF-NodeJS$

sequelize db:migrate

Sequelize CLI [Node: 10.1.0, CLI: 4.0.0, ORM: 4.37.10]

(node:2241) ExperimentalWarning: The fs.promises API is experimental

Loaded configuration file "db/config/database.json".

Using environment "development".

ERROR: Please install mysql2 package manually

这是我的package.json,就像您所要求的一样。

{

"name": "aaf-website-node",

"version": "0.0.1",

"description": "Nodejs implementation of the achieve anything website",

"main": "app.js",

"scripts": {

"start": "node bin/www",

"dev": "node node_modules/nodemon/bin/nodemon.js bin/www",

"test": "jasmine",

"console": "node console.js"

},

"repository": {

"type": "git",

"url": "https://github.com/AchieveGirl/AAF-NodeJS.git"

},

"keywords": [

"nodejs",

"express"

],

"author": "Larry Cherry",

"license": "MIT",

"bugs": {

"url": "https://github.com/AchieveGirl/AAF-NodeJS/issues"

},

"homepage": "https://github.com/AchieveGirl/AAF-NodeJS/blob/master/README.md",

"dependencies": {

"body-parser": "^1.18.2",

"bootstrap": "^4.0.0",

"compression": "^1.7.2",

"cookie-parser": "^1.4.3",

"dotenv": "^5.0.1",

"ejs": "^2.5.7",

"eslint": "^4.19.1",

"express": "^4.16.3",

"express-ejs-layouts": "^2.3.1",

"express-minify": "^1.0.0",

"express-minify-html": "^0.12.0",

"jquery": "^3.3.1",

"lodash": "^4.17.5",

"morgan": "^1.9.0",

"mysql2": "^1.5.3",

"node-fetch": "^2.1.2",

"node-minify": "^2.4.1",

"popper.js": "^1.14.3",

"sequelize": "^4.37.10",

"sequelize-cli": "^4.0.0",

"serve-favicon": "^2.4.5",

"webpack": "^4.1.1",

"webpack-cli": "^2.0.12"

},

"devDependencies": {

"nodemon": "^1.17.2",

"pryjs": "^1.0.3"

}

}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值