RenwaX23/XSSTRON

Error while running the nmp install & nmp start

plutob0i opened this issue · 3 comments

Hello, I'm facing this error while iinstalling the tool,

sudo npm install
[sudo] password for kali:

core-js@3.8.2 postinstall /home/kali/XSSTRON/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

electron@11.2.0 postinstall /home/kali/XSSTRON/node_modules/electron
node install.js
Downloading electron-v11.2.0-linux-x64.zip: [====================================================================================================] 100% ETA: 0.0 seconds
Error: EACCES: permission denied, stat '/root/.cache/electron/httpsgithub.comelectronelectronreleasesdownloadv11.2.0SHASUMS256.txt/SHASUMS256.txt'
npm WARN XSSTRON@1.0.0 No repository field.
npm WARN XSSTRON@1.0.0 license should be a valid SPDX license expression

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@11.2.0 postinstall: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@11.2.0 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! /root/.npm/_logs/2021-02-02T06_58_07_492Z-debug.log
kali@kali:/XSSTRON$
kali@kali:
/XSSTRON$ sudo npm start

XSSTRON@1.0.0 start /home/kali/XSSTRON
electron .

sh: 1: electron: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! XSSTRON@1.0.0 start: electron .
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the XSSTRON@1.0.0 start 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! /root/.npm/_logs/2021-02-02T06_58_21_984Z-debug.log

To be precise I'm getting this error, i have the latest nodejs & npm and im getting this error.

kali@kali:~/XSSTRON$ sudo npm install

core-js@3.8.2 postinstall /home/kali/XSSTRON/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

electron@11.2.0 postinstall /home/kali/XSSTRON/node_modules/electron
node install.js

Downloading electron-v11.2.0-linux-x64.zip: >[====================================================================================================] 100% ETA: 0.0 seconds
Error: EACCES: permission denied, stat '/root/.cache/electron/httpsgithub.comelectronelectronreleasesdownloadv11.2.0SHASUMS256.txt/SHASUMS256.txt'
npm WARN XSSTRON@1.0.0 No repository field.
npm WARN XSSTRON@1.0.0 license should be a valid SPDX license expression

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@11.2.0 postinstall: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@11.2.0 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! /root/.npm/_logs/2021-02-02T07_22_49_563Z-debug.log

kali@kali:~/XSSTRON$ sudo npm start

XSSTRON@1.0.0 start /home/kali/XSSTRON
electron .

sh: 1: electron: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! XSSTRON@1.0.0 start: electron .
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the XSSTRON@1.0.0 start 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! /root/.npm/_logs/2021-02-02T07_23_20_527Z-debug.log

Hey this seems to be issue with Electron itself for now you can use on other systems Windows, OSX and Linux installed on Windows

@plutob0i Using npm install --unsafe-perm=true is ok