Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

Cannot use relative folder structure in NPM packages.json

$
0
0

Im using the example flask/react app from this github https://github.com/Faruqt/React-Flask

Problem is I have the flask.exe in Project/venv/scripts folderand the repository is in Project/React-Flask-master fodler

I edited the Prackges.json to

"scripts": {"start": "react-scripts start","temp": "cd ../","start-backend": "cd backend && /../../venv/Scripts/flask run --no-debugger","build": "react-scripts build","test": "react-scripts test","eject": "react-scripts eject"  },

But no matter what I try, I cannot use the relative folder structure.

I added a "temp" lien that is supposed to go one folder up, and even that doesnt work

(venv) C:\Code\Project\React-Flask-master>npm run temp> flask_react@0.1.0 temp> cd ../(venv) C:\Code\Project\React-Flask-master>

And

(venv) C:\Code\aicode\AIbots\catgpt\React-Flask-master>npm run start-backend> flask_react@0.1.0 start-backend> cd backend && /../../venv/Scripts/flask run --no-debuggerThe system cannot find the path specified.(venv) C:\Code\aicode\AIbots\catgpt\React-Flask-master>

I tried using "../../" and "/../../"


Viewing all articles
Browse latest Browse all 13951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>