Install electron in IMX6ULL

Hi…
I tried to install Electron LXDE image version 2.8b6 by following the steps given in the blog ( Creating graphical interfaces for embedded Linux with Electron )
and it showed the following error

root@colibri-imx6ull:~# opkg install libxss1 libcups2 nodejs nodejs-npm git

Collected errors:
 * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'libxss1'

So followed the steps given in this answer : https://www.toradex.com/community/questions/22448/opkg-couldnt-find-anything-to-satisfy-libxss1.html?childToView=22612#
And it worked till npm init . But when i try to install electron using the command “npm install electron” ,It shows some error

root@colibri-imx6ull:~/electron# 
root@colibri-imx6ull:~/electron# 
root@colibri-imx6ull:~/electron# npm install electron
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "electron" under a package
npm ERR! also called "electron". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR! 
npm ERR! For more information, see:
npm ERR!     

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/root/.npm/_logs/2020-08-05T15_35_50_625Z-debug.log
root@colibri-imx6ull:~/electron# 
root@colibri-imx6ull:~/electron# npm install electron-prebuilt
npm WARN deprecated electron-prebuilt@1.4.13: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of input at 1:11971
npm ERR! ame":"object-keys","version":"1.1.0","devDependencies":{"@ljharb/esli
npm ERR!                                                                      ^

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/root/.npm/_logs/2020-08-05T15_38_41_546Z-debug.log
root@colibri-imx6ull:~/electron# 
root@colibri-imx6ull:~/electron#

Can anyone give me proper solution.

Thanks.

Dear @Hasanul_Banna,

The error appears to be because of trying to install electron when you are already inside a folder named “electron”. Could you maybe try to change the name of the folder that you are in or try to install electron elsewhere.

Best regards,
Janani

Thanks for the reply.
Tried that too.This is the log I got.

root@colibri-imx6ull:~# npm install -g electron-prebuilt
npm WARN deprecated electron-prebuilt@1.4.13: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
/usr/bin/electron -> /usr/lib/node_modules/electron-prebuilt/cli.js

> electron-prebuilt@1.4.13 postinstall /usr/lib/node_modules/electron-prebuilt
> node install.js

/usr/lib/node_modules/electron-prebuilt/install.js:22
  throw err
  ^

Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/electron-prebuilt/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron-prebuilt@1.4.13 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron-prebuilt@1.4.13 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/root/.npm/_logs/2020-08-06T11_20_24_064Z-debug.log

I also tried with “npm install electron”.But got an error there too

Dear @Hasanul_Banna ,

Thank you for the log. It would be interesting to also look into the error log that you got while trying npm install electron. Could you also please add that?

Best Regards,
Janani

Offcourse.Here is the log

root@colibri-imx6ull:~# npm install electron

electron@9.1.2 postinstall /home/root/node_modules/electron
node install.js

Downloading electron-v9.1.2-linux-armv7l.zip: [==========================================================] 100% ETA: 0.0 seconds
Error: read ECONNRESET
at ClientRequest.request.once.error (/home/root/node_modules/got/source/request-as-event-emitter.js:178:14)
at Object.onceWrapper (events.js:316:30)
at emitOne (events.js:120:20)
at ClientRequest.emit (events.js:210:7)
at ClientRequest.origin.emit.args (/home/root/node_modules/@szmarczak/http-timer/source/index.js:37:11)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at emitOne (events.js:115:13)
at TLSSocket.emit (events.js:210:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-keys@^1.0.12 (node_modules/define-properties/node_modules/object-keys):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unexpected end of input at 1:11971
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ame":“object-keys”,“version”:“1.1.0”,“devDependencies”:{"@ljharb/esli
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ^
npm WARN root@1.0.0 No description
npm WARN root@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@9.1.2 postinstall: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@9.1.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/root/.npm/_logs/2020-08-06T06_43_36_175Z-debug.log

Dear @Hasanul_Banna ,

Thank you for the error log. These errors look more like dependency issue/Environment variables setting issues rather than actual issue with the BSP or SoM.

A quick lookup on the issue in internet gave me the following results that maybe relevant to your set-up issues:

I hope you can resolve this issue.

Best Regards, Janani