-
Notifications
You must be signed in to change notification settings - Fork 12
[FOR BEGINNERS] How do I build an app?
First, you’ll need Node.js (the application runs on it). You can download it here: https://nodejs.org/en
- Click "Get NodeJS"
- Select the version you need (Windows, macOS, Linux...)
- Wait for the installation to complete
Next, download Git from the official website
Now check to see if the necessary commands have been installed:
- Open a terminal (PowerShell, cmd.exe)
- First, type
npm -v - Then type
git --version
If there are no errors and the versions are displayed, everything is fine
Next, step by step:
- Create a folder anywhere you’d like to run CodeMotion
- Open the terminal and type:
cdfollowed by the path to your folder - Next, clone the repository using the command:
git clone https://github.com/cdmtn-dev/codemotion-ide.git - Make sure you are inside the folder containing the source files. You can tell this is the case if the folder contains files such as
package.jsonandpackage-lock.json - Next, install all dependencies using the command:
npm install - After installing the dependencies, you can run the program:
npm start
Note
If you want to run the program in daemon mode, run npm start -- --d
What if the following message appears when you launch the app:
Electron failed to install correctly, please delete node_modules/electron and try installing again
or
ncaught Error: ENOENT: no such file or directory, open '/path.txt'?
Well, this issue is due to an incorrect installation. But it’s not your fault - it's npm or Node's. Here’s what you can try:
-
Reinstall Electron
npm remove electron
npm install electron --save-dev -
Remove node_modules and package-lock and recache You can completely delete the folder containing the Node modules and package-lock.json, and clear the cache by running these commands:
rm -rf node_modules packge-lock.json(orrm -r)
npm cache clean --force
npm install
If none of this helped, I recommend contacting me so we can figure out the problem and find an alternative solution: my Telegram