I can't run the flask server in react project it shows this sh: 1: venv/bin/flask: not found error

16 Views Asked by At

I made a react project and flask for APIs .

This the structure of my project

.
├── api
├── index.html
├── node_modules
├── package.json
├── package-lock.json
├── public
├── README.md
├── src
└── vite.config.js

I have defined a custom script in the package.json to run the server "start-api": "cd api && venv/bin/flask run --no-debugger",

but it shows this error when I run it

npm run start-api

> [email protected] start-api
> cd api && venv/bin/flask run --no-debugger

sh: 1: venv/bin/flask: not found

It used to work, but this time no I haven't change any thing

0

There are 0 best solutions below