Skip to content
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

Travis builds fail with node 6 and yarn #8360

Closed
RobbieTheWagner opened this issue Jan 11, 2019 · 12 comments
Closed

Travis builds fail with node 6 and yarn #8360

RobbieTheWagner opened this issue Jan 11, 2019 · 12 comments

Comments

@RobbieTheWagner
Copy link
Contributor

It seems that ip-regex sets an engine that is not compatible with node 6, which we use for travis tests.

error ip-regex@3.0.0: The engine "node" is incompatible with this module. Expected version ">=8". Got "6.16.0"

Should we add --ignore-engines to the yarn install to avoid this sort of thing in the future? If so, I am happy to open a PR.


Output from ember version --verbose && npm --version && yarn --version:

ember-cli: 3.7.1
node: 11.6.0
v8: 7.0.276.38-node.13
uv: 1.24.1
zlib: 1.2.11
ares: 1.15.0
modules: 67
nghttp2: 1.34.0
napi: 3
llhttp: 1.0.1
http_parser: 2.8.0
openssl: 1.1.0j
icu: 63.1
unicode: 11.0
cldr: 34.0
tz: 2018e
os: darwin x64
6.5.0-next.0
1.13.0
@RobbieTheWagner RobbieTheWagner changed the title Travis builds fail with node 6 Travis builds fail with node 6 and yarn Jan 11, 2019
@rwjblue
Copy link
Member

rwjblue commented Jan 11, 2019

Can you say more? Do you mean that ember-cli itself is failing, apps are failing, addons are failing, etc?

@RobbieTheWagner
Copy link
Contributor Author

@rwjblue this was a couple of my addon builds, but this could be an issue with any project generated with ember-cli, I think. Seems like a dependency of a dependency, ip-regex, is causing the build to fail with:

error ip-regex@3.0.0: The engine "node" is incompatible with this module. Expected version ">=8". Got "6.16.0"

@rwjblue
Copy link
Member

rwjblue commented Jan 11, 2019

In one of the affected systems can you npm ls ip-regex? Who is pulling it in as a dependency?

@RobbieTheWagner
Copy link
Contributor Author

@rwjblue the output from that seems to be empty, so no idea 😂

You can see the error in the build here https://travis-ci.org/shipshapecode/ember-math-helpers/jobs/478394676

Something in travis specifically must be pulling it in. It's not in my local yarn.lock

@rwjblue
Copy link
Member

rwjblue commented Jan 11, 2019

@rwwagner90 makes sense, note that CI is running yarn install --no-lockfile (which means its building a fresh lock file) so to emulate that you'd need to rm yarn.lock && yarn and check for ip-regex...

@rwjblue
Copy link
Member

rwjblue commented Jan 11, 2019

I believe that this is the same issue that @pzuraq and I were chatting about last night. Basically a nested dependency of ember-cli-addon-docs (ember-cli-addon-docs > jsdom > tough-cookie > ip-regex) is now bringing in ip-regex which is not Node 6 compatible.

See ember-decorators/ember-decorators#375 for a handy work around.

@stormwarning
Copy link

Ran into this same dependency, ip-regex@3.0.0, which was confusing since yarn.lock was specifying 1.0.3. Using --pure-lockfile instead of --no-lockfile worked since it will read from the lockfile but not try to write back to it.

</02-cents>

@Turbo87
Copy link
Member

Turbo87 commented Jan 12, 2019

this is caused by salesforce/tough-cookie#140

@rwjblue
Copy link
Member

rwjblue commented Jan 20, 2019

Closing here as there isn't much we can do about it in ember-cli itself...

@rwjblue rwjblue closed this as completed Jan 20, 2019
@RobbieTheWagner
Copy link
Contributor Author

@rwjblue I was thinking we could add --ignore-engines to the default yarn blueprint to fix it. Thoughts?

@rwjblue
Copy link
Member

rwjblue commented Jan 21, 2019

I'm not really in favor 🤔. Hiding the failure doesn't actually fix it...

@RobbieTheWagner
Copy link
Contributor Author

@rwjblue sure thing. I think, in a lot of cases, engines are somewhat arbitrary though, and things really work still, but I suppose it's safer to not ignore the failure, so never mind 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants