Cannot bootstrap atom for development with Node 18 #427
-
I'm trying to setup a dev environment for Atom. When running the I've not done anything else to the code, I've simply cloned the repo and attempted to run the bootstrap command. My system is a Lenovo Legion 5 laptop with a Ryzen 5 4800H and a GTX 1650, running Pop!_OS 22.04. I don't know what else to say really, if I'm missing something or more system info dumps are necessary, I'll share ASAP. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
I also can't reliably run the We'll probably migrate away to |
Beta Was this translation helpful? Give feedback.
-
Please follow the instructions in https://github.com/atom-community/atom/blob/master/docs/Building.md The requirements are clearly stated. You need Node 12.18.3 version, npm 6, and a C++ compiler (e.g. Visual Studio 2017). You can also see the official preparation step of our CI image that is tested continuously: The reason your build has failed is that you are building for a newer Nodejs target. We can probably avoid this by adding |
Beta Was this translation helpful? Give feedback.
-
I was unable to reproduce this problem in Virtualbox running the Pop!_OS 22.04 Live ISO. For what it's worth, this looks to be the relevant part of your log. It is a compilation error for native C++ code in the fs-admin package: Error log snippet (click to expand)
Especially this bit: Even more pared down error log snippet (click to expand)
This line in particular:
It looks like maybe you have outdated Nan? This same package builds fine for me against Node 18.4.0 even with npm 8. (Although in general, I would recommend using npm 6, and the exact Node version corresponding to our Electron version, or the oldest supported LTS version of Node.) Troubleshooting questions
|
Beta Was this translation helpful? Give feedback.
Please follow the instructions in https://github.com/atom-community/atom/blob/master/docs/Building.md
The requirements are clearly stated. You need Node 12.18.3 version, npm 6, and a C++ compiler (e.g. Visual Studio 2017). You can also see the official preparation step of our CI image that is tested continuously:
https://github.com/atom-community/atom/blob/master/script/vsts/platforms/templates/preparation.yml
The reason your build has failed is that you are building for a newer Nodejs target. We can probably avoid this by adding
target=12.18.3
to.npmrc
. You can also define it by setting the environment variablenpm_config_target=12.18.3