add optional for npm

This commit is contained in:
better629 2023-11-20 15:04:37 +08:00
parent 33ddababff
commit 33f0ca2aee
5 changed files with 14 additions and 12 deletions

View file

@ -40,7 +40,8 @@ ## Install
### Pip installation
```bash
# Step 1: Ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js official website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)
# Step 1 [Optional]: If you want to save the artifacts like PRD in the workspace, you can execute the step. By default, the framework is compatible, and the entire process can be run completely without executing this step.
# If executing, ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js official website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)
npm --version
sudo npm install -g @mermaid-js/mermaid-cli
@ -51,8 +52,8 @@ # conda activate metagpt
python3 --version
# Step 3: Clone the repository to your local machine for latest version, and install it.
git clone https://github.com/geekan/metagpt
cd metagpt
git clone https://github.com/geekan/MetaGPT.git
cd MetaGPT
pip3 install -e. # or pip3 install metagpt # for stable version
# Step 4: run the startup.py