Laravel Elixir Module Installation

To be able to install Electron, Laravel Elixir is needed to be installed. This is where I am getting stuck while executing Electron application.

After getting Electron installed properly on the workstation, it need to be tested by executing the following command :

./node_modules/.bin/electron

Below is the real output of the command execution on bash prompt :

usernamei@hostname:/var/www/html/laravel-electron$ ./node_modules/.bin/electron .
App threw an error during load
Error: Cannot find module 'laravel-elixir'
at Module._resolveFilename (module.js:440:15)
at Function.Module._resolveFilename (/var/www/html/laravel-electron/node_modules/electron-prebuilt/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/html/laravel-electron/gulpfile.js:1:93)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'laravel-elixir'
at Module._resolveFilename (module.js:440:15)
at Function.Module._resolveFilename (/var/www/html/laravel-electron/node_modules/electron-prebuilt/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/html/laravel-electron/gulpfile.js:1:93)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
^C
username@hostname:/var/www/html/laravel-electron$ 

So, in order for executing Electron apps, laravel-elixir module need to be installed based on the error shown above : “Error: Cannot find module ‘laravel-elixir'”.¬†Below is the step which is needed to be done to install module Laravel Elixir :

Continue reading “Laravel Elixir Module Installation”

Electron Installation

Electron is a framework for creating native applications with web technologies like Javascript, HTML and CSS. It takes care of the hard parts so you can focus on the core of your application. This information can be derived from its official website in http://electron.atom.io

To be able to install electron, npm which is a default package manager for the JavaScript runtime environment Node.js

is needed. Below is the command which is needed to be executed :

npm install --save electron-prebuilt

This is the output of the display from executing the above command :

Continue reading “Electron Installation”