Setup Refine Locally on windows
Hi guys, I am trying to install locally but was not able to setup.
I tried to install using
pnpm
after cloning
pnpm install
But was not able to install it was saying syntax error.
Can someone guide me?
5 Replies
Hi @Accelerator. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To set up Refine locally on Windows, you can follow these steps. It seems you encountered a syntax error while using
pnpm
. Let's ensure you have the correct setup and follow the recommended steps.
Prerequisites
1. Node.js: Ensure you have Node.js version 18 or higher installed. You can download it from Node.js (https://nodejs.org/en/).
2. Git: Make sure Git is installed. You can download it from Git (https://git-scm.com/).
3. pnpm: Ensure you have pnpm version 9 or higher. You can install it using npm:
Steps to Set Up Refine Locally
1. Fork and Clone the Repository:
- Fork the Refine repository from GitHub (https://github.com/refinedev/refine/fork).
- Clone your forked repository to your local machine:
2. Navigate to the Project Directory:
3. Install Dependencies:
- Use pnpm to install dependencies:
- If you want to skip building packages during installation, you can use:
4. Build Packages:
- After installing dependencies, you can build the necessary packages. For example, to build packages related to Ant Design:
Troubleshooting
- If you encounter syntax errors or other issues, ensure that your Node.js and pnpm versions meet the requirements.
- If the problem persists, you might want to try deleting the node_modules
folder and the pnpm-lock.yaml
file, then running pnpm install
again.
For more detailed instructions, you can refer to the official documentation (https://refine.dev/docs/guides-concepts/contributing/#setting-up-your-environment-for-development).
If you continue to face issues, consider reaching out on the Refine Discord channel (https://discord.gg/refine) for community support.
I hope this helps! Let me know if you have any other questions.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@641705216173015041> kapa.ai is still learning and improving, please let us know how it did by reacting below
fascinating-indigoOP•9mo ago
Trying 2nd point once
Ok still same syntax error
Since I was getting error script:pnpmPreInstall
So I try to run the cmd explicitly after copying from
package.json
and running in Powershell
It ran correctly.
Now after removing that script from package.json
I ran pnpm install
At the end I got this errorfascinating-indigoOP•9mo ago

fascinating-indigoOP•9mo ago
