electron-api-demos icon indicating copy to clipboard operation
electron-api-demos copied to clipboard

dependency issues after initial -> npm install -- and Blank (White) screen after npm run)

Open AiFxApp opened this issue 2 years ago • 16 comments

  • What operating system are you using? Windows 11
  • What version of Node.js is on your system? v17.5.0 NPM -v 8.5.1

Warning Message after cloning repo and running 'npm install'

$ npm install
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: outdated version, please use @next
npm WARN deprecated [email protected]: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: Support has ended for 9.x series. Upgrade to @latest

added 825 packages, and audited 960 packages in 2m

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

31 vulnerabilities (20 moderate, 9 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

AiFxApp avatar Mar 29 '22 11:03 AiFxApp

I have the same issue

OS: mac os 12.3.1 npm: 8.5.5 node: 17.8.0

When running in debug mode using the command npm run dev I do see JavaScript errors SCR-20220407-o9p

i-johnso avatar Apr 07 '22 16:04 i-johnso

https://github.com/electron/electron-api-demos/issues/508#issuecomment-997688706

ezel avatar Apr 11 '22 09:04 ezel

Same Issue:

2022-04-20_09-54-49

2022-04-20_09-52-20

2022-04-20_09-53-59

LondonWebFactory avatar Apr 20 '22 08:04 LondonWebFactory

I also encountered this problem!

CharlesShan-hub avatar May 07 '22 03:05 CharlesShan-hub

image image

CharlesShan-hub avatar May 07 '22 03:05 CharlesShan-hub

Same Issue here Screenshot 2022-06-22 06:46:43

Harrylever avatar Jun 22 '22 05:06 Harrylever

Screenshot 2022-06-22 06:49:23

Harrylever avatar Jun 22 '22 05:06 Harrylever

I have run into the same error

Welding-Torch avatar Jun 22 '22 18:06 Welding-Torch

The same

codetoadsnow avatar Aug 07 '22 20:08 codetoadsnow

[Mickey]已经收到了,谢谢

miki-long avatar Aug 07 '22 20:08 miki-long

Sadly, same here (OSX Big Sur) -- just a white blank screen (no error dialog even)

moarwick avatar Aug 18 '22 15:08 moarwick

npm i electron@^7.2.4
npm start

jwoo92 avatar Aug 22 '22 16:08 jwoo92

Same issue.

@jwoo92

❯ yarn add electron@^7.2.4
❯ node_modules/.bin/electron .
(electron) 'getName function' is deprecated and will be removed. Please use 'name property' instead.
[19:55:24.494] [info] update-electron-app config looks good; aborting updates since app is in development mode
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
[5863:0919/195526.182579:FATAL:gpu_data_manager_impl_private.cc(986)] The display compositor is frequently crashing. Goodbye.

It's always the same with Js app, they can't work more than 3 months...

acantepie avatar Sep 19 '22 18:09 acantepie

[Mickey]已经收到了,谢谢

miki-long avatar Sep 19 '22 18:09 miki-long

Same issue.

@jwoo92


❯ yarn add electron@^7.2.4

❯ node_modules/.bin/electron .

(electron) 'getName function' is deprecated and will be removed. Please use 'name property' instead.

[19:55:24.494] [info] update-electron-app config looks good; aborting updates since app is in development mode

Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"

[5863:0919/195526.182579:FATAL:gpu_data_manager_impl_private.cc(986)] The display compositor is frequently crashing. Goodbye.

It's always the same with Js app, they can't work more than 3 months...

@acantepie steps I recommended fix only the white screen issue.

jwoo92 avatar Sep 19 '22 18:09 jwoo92

[Mickey]已经收到了,谢谢

miki-long avatar Oct 11 '22 07:10 miki-long