H
H
Hanry6542020-06-24 20:23:37
React
Hanry654, 2020-06-24 20:23:37

"Error: please install sqlite3 package manually", what should I do?

[I use sequelize] If I run a separate file with a database connection, everything works "node test.js", but if I import it into one of the components and run the project "yarn start", then there will be an error "Error: please install sqlite3 package manually" .
My package.json

{
  "name": "reaction",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "cross-env PORT=10888 HTTPS=true react-scripts start",
    "build": "react-scripts build",
    "predeploy": "npm run build",
    "deploy": "vk-miniapps-deploy"
  },
  "keywords": [],
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "cross-env": "^5.2.1",
    "react-hot-loader": "^4.12.21",
    "react-scripts": "^3.4.1"
  },
  "dependencies": {
    "@vkontakte/icons": "^1.26.0",
    "@vkontakte/vk-bridge": "^2.2.2",
    "@vkontakte/vk-miniapps-deploy": "0.0.17",
    "@vkontakte/vkui": "^3.11.2",
    "aws-sdk": "^2.701.0",
    "babel-eslint": "^10.1.0",
    "chalk": "^2.4.2",
    "core-js": "^3.6.5",
    "eruda": "^2.3.3",
    "eruda-code": "^2.0.0",
    "eruda-dom": "^2.0.0",
    "pg-hstore": "^2.3.3",
    "pg-native": "^3.0.0",
    "prop-types": "^15.7.2",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "sequelize": "^6.1.0",
    "sqlite3": "^4.2.0"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Polos, 2020-06-24
@dimovich85

I don't know where you've gone, but read the error: "Error: please install sqlite3 package manually". What else can be added? npm i sqlite3
If it doesn't help - read the console, translate, if you can't do it - write here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question