electron-react-boilerplate/electron-react-boilerplate

Installation Debugging Solutions

amilajack opened this issue · 30 comments

Installation Failure

This aims to be a list of solutions for installation issues with this project:

  1. Fix node-gyp issues:
    Follow the steps in https://github.com/nodejs/node-gyp#installation. You don't need to install node-gyp but make sure that you have the correct environment setup for your OS.

  2. Test installation against latest yarn/node version

  3. Fix Caching Issues

    rm -rf node_modules &&
    yarn cache clean &&
    yarn &&
    yarn electron-rebuild &&
    yarn dev
    
  4. If you're on Windows, try using cmder

Debugging Release Builds

DEBUG_PROD=true yarn build && DEBUG_PROD=true yarn start

@TimothyLe Please be watchful with the wording. In such a OSS project, no one owes you anything.

Comment Lines 54 and 66 in main.development.js, repackage, and open devtools.

are those line numbers still correct?

@barbalex thanks for letting me know. I just updated my comment to reflect those changes

The links to the lines miss the /app in https://github.com/chentsulin/electron-react-boilerplate/blob/master/app/main.development.js

My bad. Should have checked that. Fixed now

Commenting lines 12 and 17 in main.development.js throws this error on Windows during repackaging:

ERROR in ./app/main.js from UglifyJs
SyntaxError: Unexpected token punc «}», expected punc «:» [./~/electron-debug/index.js:23,32]

This happens during the command cross-env NODE_ENV=production node -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.electron.js --progress --profile --colors

@jeromepl does this happen for you with the latest version of the boilerplate?

Alright I figured it out after doing a bisect: I had replaced babili-webpack-plugin by UglifyJS which meant that dev dependencies such as electron-debug were not transpiled using Babel. My bad!

First of all thanks a lot for all your hard work on this repo, its been invaluable for a project I've undertaken recently which has required a turnaround of less than a month!

Recently I've been having some problems debugging. build-renderer is freezing on '91% additional asset processing' and eventually running out of memory. I have no output or log to help pinpoint the problem, is this something anyone has come across before? Thanks!

Running yarn or npm install does not work. It just hangs there forever after error code 0

$ yarn
yarn install v0.24.5
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
warning 7zip-bin-linux@1.1.0: The platform "darwin" is incompatible with this module.
info "7zip-bin-linux@1.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
warning 7zip-bin-win@2.1.0: The platform "darwin" is incompatible with this module.
info "7zip-bin-win@2.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] 🔗 Linking dependencies...
warning "extract-text-webpack-plugin@2.1.2" has incorrect peer dependency "webpack@^2.2.0".
warning "webpack-dev-server@2.5.0" has incorrect peer dependency "webpack@^2.2.0".
warning "webpack-dev-middleware@1.10.2" has incorrect peer dependency "webpack@1 || ^2.1.0-beta || ^2.2.0-rc.0".
[4/4] 📃 Building fresh packages...
success Saved lockfile.
$ concurrently "npm run flow-typed" "npm run build-dll" "electron-builder install-app-deps" "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json"
[3] node node_modules/fbjs-scripts/node/check-dev-engines.js package.json exited with code 0
[2] electron-builder 19.8.0
[0]
[0] > electron-react-boilerplate@0.12.0 flow-typed /Users/RAVEN/Desktop/frontend/bitch
[0] > rimraf flow-typed/npm && flow-typed install --overwrite || true
[0]
[1]
[1] > electron-react-boilerplate@0.12.0 build-dll /Users/RAVEN/Desktop/frontend/bitch
[1] > cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.renderer.dev.dll.js --colors
[1]
[2] Installing app dependencies for arch x64 to /Users/RAVEN/Desktop/frontend/bitch/app
[2] electron-builder install-app-deps exited with code 0
[0] • Found 82 dependencies in package.json to install libdefs for. Searching...
[0] • rebasing flow-typed cache...
[1] Hash: dfc26ee8dbdd12524347
[1] Version: webpack 3.0.0
[1] Time: 5685ms
[1] Asset Size Chunks Chunk Names
[1] renderer.dev.dll.js 1.43 MB 0 [emitted] [big] renderer
[1] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 517 bytes {0} [built]
[1] [2] dll renderer 12 bytes {0} [built]
[1] + 311 hidden modules
[1] npm run build-dll exited with code 0

@ReMuSoMeGa Your issue with yarn/npm install has been discussed and fixed #1051 👍

syshu commented

npm run dev warns that Chunk.modules is deprecated, upgrading extract-text-webpack-plugin to 3.0.1 (2.1.0 former) solves. Haven't seem newly introduced issues so far.

> cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./app/main.renderer

Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 3 more times
Failed to fetch extension, trying 3 more times`

please tell me solving solutions ...

Hi,
I have some problem with a blank released app (it works on dev) and before writing an issue, I want to investigate a little but the advices on the first post seems to be outdated.
What are the tricks in this version to have a more verbose prod app? I tried the DEBUG_PROD=true but it's only installing the extensions btw the redux one is not working

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Got this when run yarn for the first time, and also after a while, when adding a new project with yarn add.
Fixed it using npm install:

error css-loader@1.0.0: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0"

node version 8.3.0
npm version 5.3.0
yarn version 1.7.0
windows 8.1 x64
electron-react-boilerplate version 0.14.0

> cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./app/main.renderer

Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 4 more times
Failed to fetch extension, trying 3 more times
Failed to fetch extension, trying 3 more times`

please tell me solving solutions ...

I had the same problem

The links under "Debugging Release Builds" are returning 404 errors

@mattrosendin thanks for pointing this out! Just update the comment

Hi,
I am facing this error while trying to install the dependencies or npm packages.

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: electron-react-boilerplate@undefined
npm ERR! Found: react-refresh@0.10.0
npm ERR! node_modules/react-refresh
npm ERR! dev react-refresh@"^0.10.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-refresh@">=0.8.3 <0.10.0" from @pmmmwh/react-refresh-webpack-plugin@0.4.3
npm ERR! node_modules/@pmmmwh/react-refresh-webpack-plugin
npm ERR! dev @pmmmwh/react-refresh-webpack-plugin@"^0.4.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\child\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

and these are the errors when i try with peer dependencies

npm install --legacy-peer-deps
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript
syntax/features added
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated uuid@3.4.0: 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 uuid@3.4.0: 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 uuid@3.4.0: 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 request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

postinstall
node -r @babel/register .erb/scripts/check-native-dep.js && electron-builder install-app-deps && yarn cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.babel.js && opencollective-postinstall && yarn-deduplicate yarn.lock

• electron-builder version=22.11.5
• loaded configuration file=package.json ("build" field)
• installing production dependencies platform=win32 arch=x64 appDir=H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app
⨯ C:\Program Files\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:

electron-react-boilerplate@3.0.2 postinstall
yarn electron-rebuild && yarn link-modules

Error output:
'yarn' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code 1
npm ERR! path H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c yarn electron-rebuild && yarn link-modules

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\child\AppData\Local\npm-cache_logs\2021-08-31T21_03_32_669Z-debug.log
failedTask=installAppDeps stackTrace=Error: C:\Program Files\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:

                                                                         > electron-react-boilerplate@3.0.2 postinstall> yarn electron-rebuild && yarn link-modules





                                                                         Error output:

'yarn' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code 1
npm ERR! path H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c yarn electron-rebuild && yarn link-modules

                                                                         npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\child\AppData\Local\npm-cache_logs\2021-08-31T21_03_32_669Z-debug.log

                                                                             at ChildProcess.<anonymous> (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\builder-util\src\util.ts:249:14)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1055:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

npm ERR! code 1
npm ERR! path H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node -r @babel/register .erb/scripts/check-native-dep.js && electron-builder install-app-deps && yarn cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.babel.js && opencollective-postinstall && yarn-deduplicate yarn.lock

npm ERR! A complete log of this run can be found in:

Please use yarn insead.

Test installation against latest yarn/node version

OK, Yarn and node are latest.
Yarn : 1.22.11
Node: 14.7.5

and following are the details.

yarn install
yarn install v1.22.11
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to
mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info dmg-license@1.0.9: The platform "win32" is incompatible with this module.
info "dmg-license@1.0.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info iconv-corefoundation@1.1.6: The platform "win32" is incompatible with this module.
info "iconv-corefoundation@1.1.6" is an optional dependency and failed compatibility check. Excluding it from installation.info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @pmmmwh/react-refresh-webpack-plugin@0.4.3" has incorrect peer dependency "react-refresh@>=0.8.3 <0.10.0".
warning " > browserslist-config-erb@0.0.1" has incorrect peer dependency "electron@^7.0.0".
warning " > enzyme-adapter-react-16@1.15.6" has incorrect peer dependency "react@^16.0.0-0".
warning " > enzyme-adapter-react-16@1.15.6" has incorrect peer dependency "react-dom@^16.0.0-0".
warning "enzyme-adapter-react-16 > enzyme-adapter-utils@1.14.0" has incorrect peer dependency "react@0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0".
warning "enzyme-adapter-react-16 > react-test-renderer@16.14.0" has incorrect peer dependency "react@^16.14.0".
warning "enzyme-adapter-react-16 > enzyme-adapter-utils > airbnb-prop-types@2.16.0" has incorrect peer dependency "react@^0.14 || ^15.0.0 || ^16.0.0-alpha".
warning " > eslint-config-erb@3.0.0" has incorrect peer dependency "eslint-config-airbnb-typescript@^8.0.2".
warning " > eslint-config-erb@3.0.0" has incorrect peer dependency "eslint-config-prettier@^6.11.0".
warning " > eslint-config-erb@3.0.0" has incorrect peer dependency "eslint-import-resolver-webpack@^0.12.2".
warning " > eslint-config-erb@3.0.0" has incorrect peer dependency "eslint-plugin-jest@^23.13.2".
warning " > eslint-config-erb@3.0.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@6.2.3".
warning " > eslint-config-erb@3.0.0" has incorrect peer dependency "eslint-plugin-promise@^4.2.1".
warning " > eslint-config-erb@3.0.0" has unmet peer dependency "eslint-plugin-testcafe@^0.2.1".
warning " > eslint-config-erb@3.0.0" has incorrect peer dependency "react@^16.13.1".
[4/4] Building fresh packages...
success Saved lockfile.
$ node -r @babel/register .erb/scripts/check-native-dep.js && electron-builder install-app-deps && yarn cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.babel.js && opencollective-postinstall && yarn-deduplicate yarn.lock
• electron-builder version=22.11.5
• loaded configuration file=package.json ("build" field)
• installing production dependencies platform=win32 arch=x64 appDir=H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app
⨯ C:\Program Files\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:
yarn install v1.22.11
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
$ yarn electron-rebuild && yarn link-modules
yarn run v1.22.11
$ node -r ../../.erb/scripts/babel-register.js ../../.erb/scripts/electron-rebuild.js
Done in 2.28s.
yarn run v1.22.11
$ node -r ../../.erb/scripts/babel-register.js ../../.erb/scripts/link-modules.js
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error output:
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to
mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
internal/fs/utils.js:314
throw err;
^

Error: EPERM: operation not permitted, symlink 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app\node_modules' -> 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\src\node_modules'
at Object.symlinkSync (fs.js:1210:3)
at Object. (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main.erb\scripts/link-modules.js:8:6)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Module._compile (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Object.newLoader [as .js] (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
errno: -4048,
syscall: 'symlink',
code: 'EPERM',
path: 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app\node_modules',
dest: 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\src\node_modules'
}
error Command failed with exit code 1.
error Command failed with exit code 1.
failedTask=installAppDeps stackTrace=Error: C:\Program Files\nodejs\node.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:
yarn install v1.22.11
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
$ yarn electron-rebuild && yarn link-modules
yarn run v1.22.11
$ node -r ../../.erb/scripts/babel-register.js ../../.erb/scripts/electron-rebuild.js
Done in 2.28s.
yarn run v1.22.11
$ node -r ../../.erb/scripts/babel-register.js ../../.erb/scripts/link-modules.js
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

                                                                                       Error output:

warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to
mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
internal/fs/utils.js:314
throw err;
^

                                                                                       Error: EPERM: operation not permitted, symlink 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app\node_modules' -> 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\src\node_modules'
at Object.symlinkSync (fs.js:1210:3)
at Object.<anonymous> (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\.erb\scripts\/link-modules.js:8:6)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Module._compile (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Object.newLoader [as .js] (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {

errno: -4048,
syscall: 'symlink',
code: 'EPERM',
path: 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\build\app\node_modules',
dest: 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\src\node_modules'
}
error Command failed with exit code 1.
error Command failed with exit code 1.

                                                                                           at ChildProcess.<anonymous> 

(H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\builder-util\src\util.ts:249:14)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1055:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

and when I tried with yarn start
then

yarn start
yarn run v1.22.11
$ node -r @babel/register ./.erb/scripts/check-port-in-use.js && yarn start:renderer
$ cross-env NODE_ENV=development webpack serve --config ./.erb/configs/webpack.config.renderer.dev.babel.js
The DLL files are missing. Sit back while we build them for you with "yarn build-dll"
error Command failed with exit code 1.
[webpack-cli] Failed to load 'H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main.erb\configs\webpack.config.renderer.dev.babel.js' config
[webpack-cli] Error: Command failed: yarn postinstall
error Command failed with exit code 1.

at checkExecSyncError (child_process.js:760:11)
at execSync (child_process.js:833:15)
at Object.<anonymous> (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\.erb\configs\/webpack.config.renderer.dev.babel.js:38:3)
at Module._compile (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
at Module._compile (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\pirates\lib\index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Object.newLoader [as .js] (H:\electronjs\electron-react-boilerplate-main\electron-react-boilerplate-main\node_modules\pirates\lib\index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19) {

status: 1,
signal: null,
output: [
null,
<Buffer 24 20 6e 6f 64 65 20 2d 72 20 40 62 61 62 65 6c 2f 72 65 67 69 73 74 65 72 20 2e 65 72 62 2f 73 63 72 69 70 74
73 2f 63 68 65 63 6b 2d 6e 61 74 69 76 ... 12936 more bytes>,
<Buffer 65 72 72 6f 72 20 43 6f 6d 6d 61 6e 64 20 66 61 69 6c 65 64 20 77 69 74 68 20 65 78 69 74 20 63 6f 64 65 20 31
2e 0a>
],
pid: 13416,
stdout: <Buffer 24 20 6e 6f 64 65 20 2d 72 20 40 62 61 62 65 6c 2f 72 65 67 69 73 74 65 72 20 2e 65 72 62 2f 73 63 72 69
70 74 73 2f 63 68 65 63 6b 2d 6e 61 74 69 76 ... 12936 more bytes>,
stderr: <Buffer 65 72 72 6f 72 20 43 6f 6d 6d 61 6e 64 20 66 61 69 6c 65 64 20 77 69 74 68 20 65 78 69 74 20 63 6f 64 65
20 31 2e 0a>
}
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Hello, I'm facing the exact same issue @mehmoodahmed faced. Do anyone know what caused the issue above?
@mehmoodahmed if you don't mind, could you tell if you had solved the issue?

More info:
Yarn version 1.22.11
Node version v14.17.6

@mehmoodahmed @Shawnlcc I made it work on Windows by opening my cmder tab as administrator before running yarn

@mehmoodahmed @Shawnlcc I made it work on Windows by opening my cmder tab as administrator before running yarn

Hey @Odin94, thanks for replying. Forgot to update about how I solved this issue but yeah, opening cmder tab as admin worked like a charm.

I'm having trouble starting the app. Whenever I use npm start, this happens
npm start

start
ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer

start:renderer
cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config /.erb/configs/webpack.config.renderer.dev.ts

The filename, directory name, or volume label syntax is incorrect.

10n37 commented

4. If you're on Windows, try using cmder

cmder link leads to casino scam site :)

So I've done the steps listed here and the interface of the calc actually appears, so there shouldn't be a problem with the server.
I've got errors related to thise shared libraries but I couldn't find anything on the issues that could help me out.

the error itself is path/to/node_modules/electron/dist/electron: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

image

Hi, Is anyone please help me, I'm trying to upload my electron app in app store but getting this App sandbox not enabled issue. I'm using the same boilerplate.
Thanks

Asset validation failed (90296)
App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list:

My entitlement file

com.apple.security.app-sandbox com.apple.security.cs.allow-unsigned-executable-memory com.apple.security.cs.allow-jit com.apple.security.device.audio-input