npm 警告 notsup sequelize@6.1.0 不支持的引擎:需要:{ "node" : ">=10.0.0" }


{
"name": "express",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"start": "nodemon app.js"
},
"author": "Pratik Ahirrao",
"license": "ISC",
"devDependencies": {
"nodemon": "^2.0.4"
},
"dependencies": {
"body-parser": "^1.19.0",
"ejs": "^3.1.3",
"express": "^4.17.1",
"express-handlebars": "^3.0.2",
"mysql2": "^2.1.0",
"pug": "^3.0.0"
}
}

我想在我的 NodeJS 应用程序中安装 Sequelize。

我收到此错误:-

npm install --save sequelize
npm WARN notsup Unsupported engine for sequelize@6.1.0: wanted: {"node":">=10.0.0"} (current: {"node":"8.10.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: sequelize@6.1.0
npm WARN notsup Unsupported engine for semver@7.3.2: wanted: {"node":">=10"} (current: {"node":"8.10.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: semver@7.3.2
npm WARN notsup Unsupported engine for sequelize-pool@6.0.0: wanted: {"node":">= 10.0.0"} (current: {"node":"8.10.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: sequelize-pool@6.0.0
npm ERR! Unexpected end of JSON input while parsing near '...4e5abc2adff5fa18def",'
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pratik/.npm/_logs/2020-06-24T08_25_07_274Z-debug.log

我该怎么办?

我已经解决了我的问题。 我的节点(8.10.0(与安装续集不兼容。 所以我把它升级到最新版本。 以下是使用n将节点升级到最新版本的命令:-

sudo npm cache clean -f
sudo npm install -g n
sudo n latest

最新更新