Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Apple macOS 12 ( arm64 ) :: ./script/build : error : script is requesting a distribution of electron/mksnapshot (v9.0.2) that does not exist #23573

@alines7777

Description

@alines7777

Description

The build script for Atom, after cloning the repository, is attempting to install a version of Electron (v9.0.2) that does not have the files that the script is calling for to build the application.
I took the liberty of checking if it was there, and it is not. I also noticed in other release tags, and in the discussion that later versions do have the necessary files, and even files that are optimized for the operating system (apparently contributors are working from version 11 [ contributor "icecream17", #23500 ]).
In any case, the build script is calling an earlier version of Electron for a file that does not exist therein, so Atom does not build on my machine.
I've even attempted to install the latest version of Electron ( v17.0.0 ), onto my service for npm, which installed fine on npm without any problems, but this does not bypass the issue at hand. It seems as though the build script for Atom is trying create its own runtime environment to set itself apart from whatever I do on npm.

Steps to Reproduce

  1. git clone https://github.com/atom/atom.git
  2. cd atom
  3. ./script/build

Behavior:

Node:	v17.4.0
Python:	v2.7.18
Installing script dependencies
npm ERR! code 1
npm ERR! path /Users/alines7777/Git/atom/script/node_modules/electron-mksnapshot
npm ERR! command failed
npm ERR! command sh -c node ./download-mksnapshot.js
npm ERR! WARNING: mksnapshot does not run on arm64. Download 
npm ERR!   https://github.com/electron/electron/releases/download/v9.0.2/mksnapshot-v9.0.2-darwin-arm64-x64.zip
npm ERR!   on a x64 darwin OS to generate undefined snapshots.

Reproduces how often:

Everytime

Versions

atom and apm have not been built.

output of uname -a:

Darwin [REDACTED].local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions