Skip to content

fix: Support Node.js 10.x.x #3556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2018
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented May 2, 2018

Add support for Node.js 10.x.x. Currently, when trying to use CLI with Node.js 10.x.x, error is thrown. The problem is that we are using npm-shrinkwrap.json to keep using same versions of all dependencies, no matter how they are defined in the package.json files.
The current problem is that the unzip package relies on fstream package, which depends on graceful-fs 3.0.11 version. This version of graceful-fs depends on natives package by using the range ^1.1.0. In our npm-shrinkwrap.json this range is resolved to version 1.1.2. This version of the natives package does not work with Node.js 10.x.x. There's a newer one - 1.1.3 that fixes it. So the solution is to update the npm-shrinkwrap.json and use the latest version of natives package.

Also add version 10.x.x as supported in CLI's package.json, so we'll not show warning that it is not validated.

PR Checklist

What is the current behavior?

CLI cannot work with Node.js 10.x.x

What is the new behavior?

CLI works with Node.js 10.x.x

Fixes/Implements/Closes #3554.

Add support for Node.js 10.x.x. Currently, when trying to use CLI with Node.js 10.x.x, error is thrown. The problem is that we are using npm-shrinkwrap.json to keep using same versions of all dependencies, no matter how they are defined in the package.json files.
The current problem is that the `unzip` package relies on `fstream` package, which depends on `graceful-fs` 3.0.11 version. This version of `graceful-fs` depends on `natives` package by using the range `^1.1.0`. In our `npm-shrinkwrap.json` this range is resolved to version 1.1.2. This version of the `natives` package does not work with Node.js 10.x.x. There's a newer one - 1.1.3 that fixes it. So the solution is to update the npm-shrinkwrap.json and use the latest version of `natives` package.

Also add version 10.x.x as supported in CLI's package.json, so we'll not show warning that it is not validated.
@rosen-vladimirov rosen-vladimirov added this to the 4.0.1 milestone May 2, 2018
@rosen-vladimirov rosen-vladimirov self-assigned this May 2, 2018
@rosen-vladimirov rosen-vladimirov merged commit 06ebba9 into release May 2, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/support-node10 branch May 2, 2018 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants