forked from entrylabs/entry-offline
-
Notifications
You must be signed in to change notification settings - Fork 5
How to build
JJ edited this page Aug 7, 2024
·
3 revisions
-
Install Node.js
-
Install Nvm or N for managing multiple node versions
- For Mac:
sudo npm install --global n
- For Win: Install it from
https://github.com/coreybutler/nvm-windows/releases
- Install Node 16.20.2 version by NVM or N
- For Mac:
sudo n 16.20.2
sudo n => Select 16.20.2
- For Win:
nvm install 16.20.2
nvm use 16.20.2
- Download source code
cd entry-offline
- Checkout the 2.1.x version branch
git checkout 2.1.x_uz
- Install build-tools (yarn, node-gyp)
-
For Mac:
brew install yarn
-
For Win:
npm install -g yarn
-
For Mac: Xocode Command Line Tools
-
For Win(With admin privilege):
choco install python visualstudio2022-workload-vctools -y
For more information, refer to https://github.com/nodejs/node-gyp#installation
- Install packages for build
yarn install
- Do dev-build
yarn webpack:dev
- Start the built App
yarn start
If there is a Module loading error, Rebuild the module
yarn rebuild
For your detail Dev information, refer this Doc