Installation on CoKreat in Ubuntu and Mac M1 Chip set - Process and Issues with fixes #65
shubhambansaltarento
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Creation Portal Setup on Local Ubuntu with process, errors and fixes
Perquisites
Kindly Install the following (DO NOT CHANGE THE VERSION’S:)
Python 2.7
Angular 13.3.3
Node 14
Git Account
System Requirements
OS – Ubuntu or Linux
Ram more than 8 GB
SDD/HDD more than 256GB
Notes:
Project will be configured on two terminals simultaneously
Terminal 1 – to configure the local server
Terminal 2 – to configure the local client
In case of NVM instead of node, point it to Node 14 as set it as global
Python Setup Commands and Checks:
Install python V2.7 and make it as default
https://tecadmin.net/how-to-switch-python-version-in-ubuntu-debian/
Please follow the steps given here
Restart Terminal after installing python
Clone Git repository : https://github.com/Sunbird-coKreat/creation-portal
git clone https://github.com/Sunbird-coKreat/creation-portal.git
cd creation-portal
Terminal 1 setup:
Point the terminal to the cloned folder
Now change directory to “src/app” (cd src/app)
Execute following commands step by step
Set NODE_OPTIONS=--max_old_space_size=4096 (this will remove heap command)
npm install
npm resource-bundles
Set these system environment variables
export sunbird_environment="local"
export sunbird_instance="sunbird"
export sunbird_default_channel="sunbird"
export sunbird_default_tenant="sunbird"
Now do the client setup, Minimise this terminal and open new terminal or terminal tab
After part 2 is done, Ask for the right environment tokens and run the project
“npm run server”
Terminal 2 Setup:
Point this terminal to cloned repo folder and go to client folder “cd src/app/client”
Now run following commands
Npm install
Npm install nodemon
Run command nodemon
Now try running the client terminal “ng build –watch=true”
Now go to server terminal and run the “npm run server ”
This is setup creation portal on local ubntu machine
Errors while setup and running on local:
SAAS Error -> Run npm rebuild saas
Node Fibers Error ->
npm uninstall fibers
npm install fibers
(restart your machine)
also please check the terminal for the warning and command suggestions
GYP Error -> follow the command suggestion in the terminal
Note: please restart system
MAC M1 Error:
Mach M1 chip set gives an canvas error which can be solved by following commands
alias python=/usr/bin/python3
eval "$(pyenv init --path)"
Beta Was this translation helpful? Give feedback.
All reactions