nightmare icon indicating copy to clipboard operation
nightmare copied to clipboard

throw new Error('Electron builds are not available on platform: ' + platform)

Open joyboy67 opened this issue 2 years ago • 0 comments

$ doas yarn global add nightmare
doas ([email protected]) password: 
yarn global v1.22.18
[1/4] Resolving packages...
warning nightmare > [email protected]: not actively maintained; find alternatives
warning nightmare > electron > electron-download > nugget > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning nightmare > electron > electron-download > nugget > request > [email protected]: this library is no longer supported
warning nightmare > electron > electron-download > nugget > request > [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.
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
error /usr/local/share/.config/yarn/global/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /usr/local/share/.config/yarn/global/node_modules/electron
Output:
/usr/local/share/.config/yarn/global/node_modules/electron/install.js:69
      throw new Error('Electron builds are not available on platform: ' + platform)
      ^

Error: Electron builds are not available on platform: openbsd
    at getPlatformPath (/usr/local/share/.config/yarn/global/node_modules/electron/install.js:69:13)
    at Object.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/electron/install.js:18:20)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

I fail to install Nightmare on OpenBSD (7.1)

joyboy67 avatar Sep 28 '22 22:09 joyboy67