Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Use Node v4.4.5 - #563

Merged
BinaryMuse merged 9 commits into
masterfrom
build-with-bundled-node
Jun 3, 2016
Merged

BinaryMuse merged 9 commits into
masterfrom
build-with-bundled-node

Conversation

@BinaryMuse

@BinaryMuse BinaryMuse commented Jun 1, 2016 •

Copy link
Copy Markdown

This PR updates the bundled version of Node that ships with apm to v4.4.5, the current LTS build. It also changes up the build process considerably to facilitate running with this version of Node on GitHub's CI.

  • The bundled version of Node is specified by the contents of the BUNDLED_NODE_VERSION file.
  • There is a build/ directory, similar to the one atom/atom uses, that includes dependencies that are necessary for bootstrapping the build — namely, for running the download-node.js script which grabs the executable for the bundled Node and puts it in bin/.
  • There is a script/install.sh/script/install.cmd script that should be used to install apm when developing on it (instead of doing a plain npm install).
  • There is a bin/apm[.cmd] script that should be used to ensure npm scripts run with the proper version of Node. This can be skipped if you're developing apm using the same version of Node as is listed in BUNDLED_NODE_VERSION.

It's likely that we'll need to make some small tweaks to Atom's build steps to make this all work, and I'd like to run it on my own machine for a bit, but I wanted to get this out as early as possible to get some 👀 on it. One thing I'm particularly interested in people's opinion on is if we should stick to a LTS version of Node or if we should jump straight into Node v6.

Fixes #410
Fixes #481
Fixes #527
Fixes #457
Fixes #312
Fixes #319

@BinaryMuse

Copy link
Copy Markdown
Author

/cc @atom/core, @atom/feedback

@iolsen

iolsen commented Jun 1, 2016 •

Copy link
Copy Markdown

Considering how long it took us to take on this upgrade (my fault), I'm 👍 on choosing the LTS version.

@BinaryMuse

Copy link
Copy Markdown
Author

@iolsen Ha, well the problem was with CI. If this successfully takes care of that problem, we should be able to keep this up-to-date much more easily.

@winstliu

winstliu commented Jun 2, 2016 •

Copy link
Copy Markdown
Contributor

Just going to link a "few" issues that should be resolved by this upgrade:
#410
#481
#527
#457
#322
#312
#319 (maybe? This looks like it has already been resolved)
#328 kinda
#463
#436

@BinaryMuse
BinaryMuse force-pushed the build-with-bundled-node branch from 6aa8406 to c254245 Compare June 2, 2016 21:27
Comment thread script/download-node.js Outdated
var fromPath = path.join(fromDirectory, subDir, 'bin', 'node');
return mv(fromPath, targetFilename, function(err) {
var downloadedNodePath = path.join(fromDirectory, subDir, 'bin', 'node');
var targetDir = path.dirname(targetFilename)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor, but can we 🔥 this line? Seems like we're not using it anywhere in this file.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Missed some stuff moving junk around :)

@BinaryMuse

Copy link
Copy Markdown
Author

@kuychaco This is now ready as well. Care to give it one more 👀 ?

@BinaryMuse

Copy link
Copy Markdown
Author

I think we should merge #562 first, and then I'll rebase this on top of it.

@BinaryMuse
BinaryMuse force-pushed the build-with-bundled-node branch from a16465d to 8fe3752 Compare June 3, 2016 18:03
@BinaryMuse
BinaryMuse merged commit 7e74d24 into master Jun 3, 2016
@BinaryMuse
BinaryMuse deleted the build-with-bundled-node branch June 3, 2016 18:32
@NicoHood

NicoHood commented Jun 3, 2016 •

Copy link
Copy Markdown

Does this solve anything of this (arm builds of atom)? atom/atom#7822

@BinaryMuse

BinaryMuse commented Jun 3, 2016 •

Copy link
Copy Markdown
Author

@NicoHood My understanding is that it could, but I don't know for sure.

@iolsen

iolsen commented Jun 3, 2016

Copy link
Copy Markdown

This should also fix (or make possible a fix for) atom/atom#5109! 🎉

@tiangolo

Copy link
Copy Markdown

When will this be integrated in Atom? Or where should I check?

I just installed the latest stable version V1.8.0, but I don't even know if this is included in a beta or where to check.

I'm having issues installing a package that uses (zmq-prebuilt) and it requires a Node version higher than 0.12.

@iolsen

iolsen commented Jun 15, 2016

Copy link
Copy Markdown

Soon. We're working on build infrastructure to include this.

You can look at the Atom releases page to see PRs included in each release. You can also do apm --version to show the versions of node and npm in use.

@tiangolo

Copy link
Copy Markdown

OK, thanks @iolsen.

@tinymins

tinymins commented Jul 5, 2016

Copy link
Copy Markdown

image
Still get error node.exe: bad option: --harmony_collections.
What should I do to fix this problem?

@noahtallen

noahtallen commented Jul 29, 2016 •

Copy link
Copy Markdown

I'm getting issues installing linter-js-standard for Atom. It's been suggested that this update (with more recent node/npm versions) will fix the issue. Just curious when this will be updated in the release for Windows. Is it in the Windows beta channel yet?

@as-cii

as-cii commented Jul 29, 2016 •

Copy link
Copy Markdown
Contributor

@ntomallen: although it's already on atom/atom master, this hasn't been released yet. It will, however, go out on the next beta release! 🚀

@noahtallen

Copy link
Copy Markdown

Fantastic! Will definitely be testing it then.
On Fri, Jul 29, 2016 at 11:54 AM Antonio Scandurra [email protected]
wrote:

@ntomallen https://github.com/ntomallen: this hasn't been released yet,
but it will go out on the next beta release! 🚀

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#563 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AF-cd9_i8nAm-mnZC4AKV3t4XBGxriY6ks5qaiJPgaJpZM4IsElp
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants