Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to install, probably due to NPM package vulnerabilities #33

Open
cems2 opened this issue Jan 2, 2021 · 3 comments
Open

Fails to install, probably due to NPM package vulnerabilities #33

cems2 opened this issue Jan 2, 2021 · 3 comments

Comments

@cems2
Copy link

cems2 commented Jan 2, 2021

when running npm install I get reports of critical vulnerabilities in packages requires. Ignoring this and trying to start this code anyhow I get the following error message
npm start

[email protected] start /home/cems2/impressionist/impressionist
electron .

/home/cems2/impressionist/impressionist/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] start: electron .
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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! /home/cems2/.npm/_logs/2021-01-02T21_02_44_616Z-debug.log

I note that the log file listed above is doesn't seem to exist either.

@cems2
Copy link
Author

cems2 commented Jan 6, 2021

more output:

updated 1 package in 0.686s

4 packages are looking for funding
  run `npm fund` for details

fixed 1 of 7 vulnerabilities in 157 scanned packages
  3 vulnerabilities required manual review and could not be updated
  1 package update for 3 vulnerabilities involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
(base) cems@pn2001094:~/Documents/JamieMorton/impressionist$ npm audit fix --force
npm WARN using --force I sure hope you know what you are doing.

> [email protected] postinstall /home/cems/Documents/JamieMorton/impressionist/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 -)


> [email protected] postinstall /home/cems/Documents/JamieMorton/impressionist/node_modules/electron
> node install.js



^C
(base) cems@pn2001094:~/Documents/JamieMorton/impressionist$ npm start

> [email protected] start /home/cems/Documents/JamieMorton/impressionist
> electron .

/home/cems/Documents/JamieMorton/impressionist/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/home/cems/Documents/JamieMorton/impressionist/node_modules/electron/index.js:14:11)
    at Object.<anonymous> (/home/cems/Documents/JamieMorton/impressionist/node_modules/electron/index.js:18:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/cems/Documents/JamieMorton/impressionist/node_modules/electron/cli.js:3:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `electron .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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:

@grempa
Copy link

grempa commented Sep 14, 2021

same here +1

@nord64
Copy link

nord64 commented Jan 12, 2023

Did anybody solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants