Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ git clone https://github.com/NexGenStudioDev/LocalMind.git
cd LocalMind

# Install dependencies
cd server && npm install
cd ../client && npm install
cd LocalMind-Backend && npm install
cd ../LocalMind-Frontend && npm install
Comment on lines +278 to +279
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The cd commands change the current working directory. After these two commands run, the shell will be inside the LocalMind-Frontend directory. This will cause the subsequent command, cd LocalMind-Backend && npm run dev, to fail because it's executed from the wrong location.

To fix this, you can run the installation commands within subshells by wrapping them in parentheses. This executes the commands in the correct subdirectories without changing the working directory of the main shell, ensuring that subsequent commands run from the correct project root.

Suggested change
cd LocalMind-Backend && npm install
cd ../LocalMind-Frontend && npm install
(cd LocalMind-Backend && npm install)
(cd LocalMind-Frontend && npm install)


# Start the backend
cd server && npm run dev
cd LocalMind-Backend && npm run dev

# Start the frontend (in a new terminal)
cd client && npm run dev
cd LocalMind-Frontend && npm run dev

# Open http://localhost:5173
```
Expand Down Expand Up @@ -320,7 +320,7 @@ git --version # Should show git version 2.x.x

```bash
# Navigate to server directory
cd server
cd LocalMind-Backend

# Install dependencies
npm install
Expand Down Expand Up @@ -357,7 +357,7 @@ npm run test # Run test suite

```bash
# Navigate to client directory
cd client
cd LocalMind-Frontend

# Install dependencies
npm install
Expand Down